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>
Tue, 3 Jun 2014 07:11:21 +0000 (08:11 +0100)
commit9549b5ff001a8904372370d10be9a2f05e10eca5
treeac06ddeb4bb3c9c7ec8572c86789af1e50d9c95f
parent006cea3aeced7f3d67fe2849da7724683853d87d
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