[PATCH v9 5/9] power: supply: max17042: add max77705 fuel gauge support

Dzmitry Sankouski posted 9 patches 1 year ago
There is a newer version of this series
[PATCH v9 5/9] power: supply: max17042: add max77705 fuel gauge support
Posted by Dzmitry Sankouski 1 year ago
Add max77705 fuel gauge support.

Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
---
 drivers/power/supply/max17042_battery.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/power/supply/max17042_battery.c b/drivers/power/supply/max17042_battery.c
index 6a1bfc4a7b13..8623c89ad274 100644
--- a/drivers/power/supply/max17042_battery.c
+++ b/drivers/power/supply/max17042_battery.c
@@ -1212,6 +1212,7 @@ static const struct of_device_id max17042_dt_match[] = {
 	{ .compatible = "maxim,max17050" },
 	{ .compatible = "maxim,max17055" },
 	{ .compatible = "maxim,max77849-battery" },
+	{ .compatible = "maxim,max77705-battery" },
 	{ },
 };
 MODULE_DEVICE_TABLE(of, max17042_dt_match);
@@ -1223,6 +1224,7 @@ static const struct i2c_device_id max17042_id[] = {
 	{ "max17050", MAXIM_DEVICE_TYPE_MAX17050 },
 	{ "max17055", MAXIM_DEVICE_TYPE_MAX17055 },
 	{ "max77849-battery", MAXIM_DEVICE_TYPE_MAX17047 },
+	{ "max77705-battery", MAXIM_DEVICE_TYPE_MAX17047 },
 	{ }
 };
 MODULE_DEVICE_TABLE(i2c, max17042_id);
@@ -1233,6 +1235,7 @@ static const struct platform_device_id max17042_platform_id[] = {
 	{ "max17050", MAXIM_DEVICE_TYPE_MAX17050 },
 	{ "max17055", MAXIM_DEVICE_TYPE_MAX17055 },
 	{ "max77849-battery", MAXIM_DEVICE_TYPE_MAX17047 },
+	{ "max77705-battery", MAXIM_DEVICE_TYPE_MAX17047 },
 	{ }
 };
 MODULE_DEVICE_TABLE(platform, max17042_platform_id);

-- 
2.39.5
Re: [PATCH v9 5/9] power: supply: max17042: add max77705 fuel gauge support
Posted by Krzysztof Kozlowski 1 year ago
On 02/12/2024 10:47, Dzmitry Sankouski wrote:
> Add max77705 fuel gauge support.
> 
> Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
> ---
>  drivers/power/supply/max17042_battery.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/power/supply/max17042_battery.c b/drivers/power/supply/max17042_battery.c
> index 6a1bfc4a7b13..8623c89ad274 100644
> --- a/drivers/power/supply/max17042_battery.c
> +++ b/drivers/power/supply/max17042_battery.c
> @@ -1212,6 +1212,7 @@ static const struct of_device_id max17042_dt_match[] = {
>  	{ .compatible = "maxim,max17050" },
>  	{ .compatible = "maxim,max17055" },
>  	{ .compatible = "maxim,max77849-battery" },
> +	{ .compatible = "maxim,max77705-battery" },


Always keep existing order.


Best regards,
Krzysztof