mfd: bd718x7: Make power button press duration configurable
authorLeonard Crestez <leonard.crestez@nxp.com>
Tue, 21 May 2019 20:41:14 +0000 (20:41 +0000)
committerLee Jones <lee.jones@linaro.org>
Tue, 2 Jul 2019 11:11:31 +0000 (12:11 +0100)
commite25547f899a531ecea1fcca975752872682ec564
tree115e02c15074a3738b5cb14b6c5ce7854140fa6d
parent907bf9d65f2da9b7ea1b5aa0c1b8d5950f29356d
mfd: bd718x7: Make power button press duration configurable

Allow overwriting the values in BD718XX_REG_PWRONCONFIG0 and
BD718XX_REG_PWRONCONFIG1 via devicetree. Read values in milliseconds and
attempt to round them to something supported by the hardware.

Keep existing values (from bootloader or OTP) if property is not
present.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-By: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
[Lee: Fixed-up merge/API conflict]
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/rohm-bd718x7.c