]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mfd: sec-core: Remove duplicated device type from sec_pmic_dev
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Wed, 23 Apr 2014 14:13:05 +0000 (16:13 +0200)
committerLee Jones <lee.jones@linaro.org>
Fri, 23 May 2014 09:34:05 +0000 (10:34 +0100)
commit03ac4b75139385d922c57d0081cce63df686e5f5
tree05775000dc11936424550e4fe39d6dc26a8f2d1a
parent084ccd598384ddd26a411bd76c676e01ce82b2d3
mfd: sec-core: Remove duplicated device type from sec_pmic_dev

The device type was stored in sec_pmic_dev state container twice:
 - unsigned long type (initialized from of_device_id or i2c_device_id)
 - int device_type (initialized as above or from board files when there
   is no DTS)

The 'type' field was never used outside of probe so it can be safely
removed.

Change also the device_type in sec_pmic_dev and sec_platform_data to
unsigned long to avoid any casts.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/sec-core.c
drivers/mfd/sec-irq.c
include/linux/mfd/samsung/core.h