]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
mfd: input: iio: ti_am335x_adc: use one structure for ti_tscadc_dev
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 5 Jun 2013 14:13:47 +0000 (16:13 +0200)
committerSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 12 Jun 2013 15:58:59 +0000 (17:58 +0200)
commita9bce1b03c2199e66d36cda8aac675338bc074a7
tree1f02ee8522388834c2a31de21dd8b7b38409f457
parentd683b96b072dc4680fc74964eca77e6a23d1fa6e
mfd: input: iio: ti_am335x_adc: use one structure for ti_tscadc_dev

The mfd driver creates platform data for the child devices and it is the
ti_tscadc_dev struct. This struct is copied for the two devices.
The copy of the structure makes a common lock in this structure a little
less usefull. Therefore the platform data is not a pointer to the
structure and the same structure is used.
While doing the change I noticed that the suspend/resume code assumes
the wrong pointer for ti_tscadc_dev and this has been fixed as well.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
drivers/iio/adc/ti_am335x_adc.c
drivers/input/touchscreen/ti_am335x_tsc.c
drivers/mfd/ti_am335x_tscadc.c
include/linux/mfd/ti_am335x_tscadc.h