diff options
author | 2023-08-18 18:03:55 +0100 | |
---|---|---|
committer | 2023-08-18 18:03:55 +0100 | |
commit | 90a82b2dfee878eacbdb261bc96eeeeb6b2a1e24 (patch) | |
tree | a3335d5d99c20d4b0680febc118e95863ce4c273 | |
parent | regulator: db8500-prcmu: Remove unused declaration power_state_active_is_enabled() (diff) | |
parent | regulator: raa215300: Update help description (diff) | |
download | wireguard-linux-90a82b2dfee878eacbdb261bc96eeeeb6b2a1e24.tar.xz wireguard-linux-90a82b2dfee878eacbdb261bc96eeeeb6b2a1e24.zip |
trivial fixes for raa215300 driver
Merge series from Biju Das <biju.das.jz@bp.renesas.com>:
This patch series aims to add trivial fixes for raa215300 driver.
These issues were reported by Pavel while backporting this patch
to 6.1.y cip kernel[1].
[1] https://lore.kernel.org/all/ZN3%2FSjL50ls+3dnD@duo.ucw.cz/
v1->v2:
* Split Kconfig and add missing space for comment block as separate
patch.
Biju Das (3):
regulator: raa215300: Change rate from 32000->32768
regulator: raa215300: Add missing blank space
regulator: raa215300: Update help description
drivers/regulator/Kconfig | 6 +++++-
drivers/regulator/raa215300.c | 4 ++--
2 files changed, 7 insertions(+), 3 deletions(-)
--
2.25.1
Diffstat (limited to '')
-rw-r--r-- | drivers/regulator/Kconfig | 6 | ||||
-rw-r--r-- | drivers/regulator/raa215300.c | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig index 086596239356..186b97c5aa16 100644 --- a/drivers/regulator/Kconfig +++ b/drivers/regulator/Kconfig @@ -1072,7 +1072,11 @@ config REGULATOR_RAA215300 depends on COMMON_CLK depends on I2C help - Support for the Renesas RAA215300 PMIC. + If you say yes to this option, support will be included for the + Renesas RAA215300 PMIC. + + Say M here if you want to include support for Renesas RAA215300 PMIC + as a module. The module will be named "raa215300". config REGULATOR_RASPBERRYPI_TOUCHSCREEN_ATTINY tristate "Raspberry Pi 7-inch touchscreen panel ATTINY regulator" diff --git a/drivers/regulator/raa215300.c b/drivers/regulator/raa215300.c index bdbf1e4ce468..6982565c8aa4 100644 --- a/drivers/regulator/raa215300.c +++ b/drivers/regulator/raa215300.c @@ -86,7 +86,7 @@ static int raa215300_i2c_probe(struct i2c_client *client) val &= RAA215300_REG_BLOCK_EN_RTC_EN; regmap_write(regmap, RAA215300_REG_BLOCK_EN, val); - /*Clear the latched registers */ + /* Clear the latched registers */ regmap_read(regmap, RAA215300_FAULT_LATCHED_STATUS_1, &val); regmap_write(regmap, RAA215300_FAULT_LATCHED_STATUS_1, val); regmap_read(regmap, RAA215300_FAULT_LATCHED_STATUS_2, &val); @@ -127,7 +127,7 @@ static int raa215300_i2c_probe(struct i2c_client *client) struct clk_hw *hw; ssize_t size; - hw = devm_clk_hw_register_fixed_rate(dev, clk_name, NULL, 0, 32000); + hw = devm_clk_hw_register_fixed_rate(dev, clk_name, NULL, 0, 32768); if (IS_ERR(hw)) return PTR_ERR(hw); |