| From 284209f531d7ed834098ac84cfbb7798c2c9018f Mon Sep 17 00:00:00 2001 |
| From: Sasha Levin <sashal@kernel.org> |
| Date: Thu, 6 Apr 2023 20:18:00 +0300 |
| Subject: regulator: fan53555: Explicitly include bits header |
| |
| From: Cristian Ciocaltea <cristian.ciocaltea@collabora.com> |
| |
| [ Upstream commit 4fb9a5060f73627303bc531ceaab1b19d0a24aef ] |
| |
| Since commit f2a9eb975ab2 ("regulator: fan53555: Add support for |
| FAN53526") the driver makes use of the BIT() macro, but relies on the |
| bits header being implicitly included. |
| |
| Explicitly pull the header in to avoid potential build failures in some |
| configurations. |
| |
| While here, reorder include directives alphabetically. |
| |
| Fixes: f2a9eb975ab2 ("regulator: fan53555: Add support for FAN53526") |
| Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com> |
| Link: https://lore.kernel.org/r/20230406171806.948290-3-cristian.ciocaltea@collabora.com |
| Signed-off-by: Mark Brown <broonie@kernel.org> |
| Signed-off-by: Sasha Levin <sashal@kernel.org> |
| --- |
| drivers/regulator/fan53555.c | 11 ++++++----- |
| 1 file changed, 6 insertions(+), 5 deletions(-) |
| |
| diff --git a/drivers/regulator/fan53555.c b/drivers/regulator/fan53555.c |
| index dac1fb584fa35..df53464afe3a0 100644 |
| --- a/drivers/regulator/fan53555.c |
| +++ b/drivers/regulator/fan53555.c |
| @@ -8,18 +8,19 @@ |
| // Copyright (c) 2012 Marvell Technology Ltd. |
| // Yunfan Zhang <yfzhang@marvell.com> |
| |
| +#include <linux/bits.h> |
| +#include <linux/err.h> |
| +#include <linux/i2c.h> |
| #include <linux/module.h> |
| +#include <linux/of_device.h> |
| #include <linux/param.h> |
| -#include <linux/err.h> |
| #include <linux/platform_device.h> |
| +#include <linux/regmap.h> |
| #include <linux/regulator/driver.h> |
| +#include <linux/regulator/fan53555.h> |
| #include <linux/regulator/machine.h> |
| #include <linux/regulator/of_regulator.h> |
| -#include <linux/of_device.h> |
| -#include <linux/i2c.h> |
| #include <linux/slab.h> |
| -#include <linux/regmap.h> |
| -#include <linux/regulator/fan53555.h> |
| |
| /* Voltage setting */ |
| #define FAN53555_VSEL0 0x00 |
| -- |
| 2.39.2 |
| |