]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mfd: max14577: Add detection of device type
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Mon, 14 Apr 2014 09:17:14 +0000 (11:17 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 23 Apr 2014 13:08:06 +0000 (14:08 +0100)
commiteccb80cc22354a12255c2579247a92a30a4c881b
tree5109ff3dcc8493c807f04efda8e9e0d8223251c4
parent575343d161d75dc1516f53436b9eb47d04eda938
mfd: max14577: Add detection of device type

This patch continues the preparation for adding support for MAX77836
device to existing max14577 driver.

Add enum for types of devices supported by this driver. The device type
will be detected by matching of_device_id, or i2c_device_id as a
fallback.

The patch also moves to separate function the code related to displaying
DeviceID register values.

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