09 Jan, 2012
2 commits
-
Remove the const keyword to fix below warning:
CC drivers/mfd/jz4740-adc.o
drivers/mfd/jz4740-adc.c: In function 'jz4740_adc_probe':
drivers/mfd/jz4740-adc.c:290: warning: passing argument 3 of 'mfd_add_devices' discards qualifiers from pointer target type
include/linux/mfd/core.h:93: note: expected 'struct mfd_cell *' but argument is of type 'const struct mfd_cell *'Also make jz4740_adc_cells static, is not used outside
this driver so no need to make the symbol global.Signed-off-by: Axel Lin
Signed-off-by: Samuel Ortiz -
Factors out some boilerplate code for drivers doing the default thing
for platform driver registration. Drivers using platform_driver_probe
or an initcall other than module_init can't be converted.Signed-off-by: Mark Brown
Signed-off-by: Samuel Ortiz
21 Dec, 2011
1 commit
-
Include linux/io.h to fix below build error:
CC drivers/mfd/jz4740-adc.o
drivers/mfd/jz4740-adc.c: In function 'jz4740_adc_irq_demux':
drivers/mfd/jz4740-adc.c:73: error: implicit declaration of function 'readb'
drivers/mfd/jz4740-adc.c: In function 'jz4740_adc_set_enabled':
drivers/mfd/jz4740-adc.c:110: error: implicit declaration of function 'writeb'
drivers/mfd/jz4740-adc.c: In function 'jz4740_adc_set_config':
drivers/mfd/jz4740-adc.c:146: error: implicit declaration of function 'readl'
drivers/mfd/jz4740-adc.c:151: error: implicit declaration of function 'writel'
drivers/mfd/jz4740-adc.c: In function 'jz4740_adc_probe':
drivers/mfd/jz4740-adc.c:249: error: implicit declaration of function 'ioremap_nocache'
drivers/mfd/jz4740-adc.c:249: warning: assignment makes pointer from integer without a cast
drivers/mfd/jz4740-adc.c:289: warning: passing argument 3 of 'mfd_add_devices' discards qualifiers from pointer target type
include/linux/mfd/core.h:93: note: expected 'struct mfd_cell *' but argument is of type 'const struct mfd_cell *'
drivers/mfd/jz4740-adc.c:299: error: implicit declaration of function 'iounmap'
make[2]: *** [drivers/mfd/jz4740-adc.o] Error 1
make[1]: *** [drivers/mfd] Error 2
make: *** [drivers] Error 2Signed-off-by: Axel Lin
Acked-by: Lars-Peter Clausen
Signed-off-by: Samuel Ortiz
24 Oct, 2011
1 commit
-
Signed-off-by: Lars-Peter Clausen
Signed-off-by: Samuel Ortiz
21 Sep, 2011
1 commit
-
In commit 659fb32d1b6("genirq: replace irq_gc_ack() with {set,clr}_bit
variants"), irq_gc_ack was renamed to irq_gc_ack_set_bit. The jz4740-adc
driver still uses the old name which results in a compile error.Signed-off-by: Lars-Peter Clausen
Signed-off-by: Samuel Ortiz
01 Aug, 2011
1 commit
-
Use the generic irq chip framework for implementing the irq chip for
the jz4740-adc driver.Signed-off-by: Lars-Peter Clausen
Cc: Thomas Gleixner
Signed-off-by: Samuel Ortiz
27 Mar, 2011
1 commit
-
Converted with coccinelle.
Signed-off-by: Thomas Gleixner
Acked-by: Mark Brown
Signed-off-by: Samuel Ortiz
23 Mar, 2011
1 commit
-
No need to explicitly set the cell's platform_data/data_size.
Modify clients to use mfd_get_cell helper function instead of
accessing platform_data directly.Signed-off-by: Andres Salomon
Acked-by: Jean Delvare
Signed-off-by: Samuel Ortiz
14 Jan, 2011
1 commit
-
Convert the jz4740-adc driver to use the recently introduced IRQ API
variants which are passed struct irq_data rather than an IRQ number.Signed-off-by: Mark Brown
Signed-off-by: Lars-Peter Clausen
Signed-off-by: Mark Brown
Signed-off-by: Samuel Ortiz
29 Oct, 2010
1 commit
-
When enabled is false, clear BIT(engine) of JZ_REG_ADC_ENABLE register.
Signed-off-by: Axel Lin
Acked-by: Lars-Peter Clausen
Signed-off-by: Samuel Ortiz
12 Aug, 2010
3 commits
-
If kmalloc() fails exit with -ENOMEM.
Signed-off-by: Axel Lin
Signed-off-by: Samuel Ortiz -
If mfd_add_devices() fail, we need to relese allocated resources.
Signed-off-by: Axel Lin
Signed-off-by: Samuel Ortiz -
This patch adds a MFD driver for the JZ4740 ADC unit. The driver is used to
demultiplex IRQs and synchronize access to shared registers between the
battery, hwmon and (future) touchscreen driver.Signed-off-by: Lars-Peter Clausen
Signed-off-by: Samuel Ortiz