mfd: bd9571mwv: Make the driver more generic
authorKhiem Nguyen <khiem.nguyen.xt@renesas.com>
Tue, 12 Jan 2021 09:01:06 +0000 (18:01 +0900)
committerLee Jones <lee.jones@linaro.org>
Thu, 14 Jan 2021 13:05:55 +0000 (13:05 +0000)
commitf16e1fd197f85a943b5880009f4aefe05a17df0d
tree7b261aa07dadba97a86fc81007b4ba87ff2c5a31
parent1e40a92c651f4bb383df757b69821f74820b6e6a
mfd: bd9571mwv: Make the driver more generic

Since the driver supports BD9571MWV PMIC only, this patch makes
the functions and data structure become more generic so that
it can support other PMIC variants as well. Also remove printing
part name which Lee Jones suggested.

Signed-off-by: Khiem Nguyen <khiem.nguyen.xt@renesas.com>
Co-developed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Acked-for-MFD-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/bd9571mwv.c
include/linux/mfd/bd9571mwv.h