From: Sebastian Andrzej Siewior Date: Wed, 5 Jun 2013 14:13:47 +0000 (+0200) Subject: mfd: input: iio: ti_am335x_adc: use one structure for ti_tscadc_dev X-Git-Tag: v3.11-rc1~53^2~39^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9bce1b03c2199e66d36cda8aac675338bc074a7;p=pandora-kernel.git 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 --- Reading git-diff-tree failed