Skip to content

Commit 90a82b2

Browse files
committed
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
2 parents 35acbdf + 8845252 commit 90a82b2

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

drivers/regulator/Kconfig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,11 @@ config REGULATOR_RAA215300
10721072
depends on COMMON_CLK
10731073
depends on I2C
10741074
help
1075-
Support for the Renesas RAA215300 PMIC.
1075+
If you say yes to this option, support will be included for the
1076+
Renesas RAA215300 PMIC.
1077+
1078+
Say M here if you want to include support for Renesas RAA215300 PMIC
1079+
as a module. The module will be named "raa215300".
10761080

10771081
config REGULATOR_RASPBERRYPI_TOUCHSCREEN_ATTINY
10781082
tristate "Raspberry Pi 7-inch touchscreen panel ATTINY regulator"

drivers/regulator/raa215300.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ static int raa215300_i2c_probe(struct i2c_client *client)
8686
val &= RAA215300_REG_BLOCK_EN_RTC_EN;
8787
regmap_write(regmap, RAA215300_REG_BLOCK_EN, val);
8888

89-
/*Clear the latched registers */
89+
/* Clear the latched registers */
9090
regmap_read(regmap, RAA215300_FAULT_LATCHED_STATUS_1, &val);
9191
regmap_write(regmap, RAA215300_FAULT_LATCHED_STATUS_1, val);
9292
regmap_read(regmap, RAA215300_FAULT_LATCHED_STATUS_2, &val);
@@ -127,7 +127,7 @@ static int raa215300_i2c_probe(struct i2c_client *client)
127127
struct clk_hw *hw;
128128
ssize_t size;
129129

130-
hw = devm_clk_hw_register_fixed_rate(dev, clk_name, NULL, 0, 32000);
130+
hw = devm_clk_hw_register_fixed_rate(dev, clk_name, NULL, 0, 32768);
131131
if (IS_ERR(hw))
132132
return PTR_ERR(hw);
133133

0 commit comments

Comments
 (0)