Skip to content

Commit 4fb9a50

Browse files
cristiccbroonie
authored andcommitted
regulator: fan53555: Explicitly include bits header
Since commit f2a9eb9 ("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: f2a9eb9 ("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>
1 parent 7e364e5 commit 4fb9a50

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

drivers/regulator/fan53555.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,19 @@
88
// Copyright (c) 2012 Marvell Technology Ltd.
99
// Yunfan Zhang <yfzhang@marvell.com>
1010

11+
#include <linux/bits.h>
12+
#include <linux/err.h>
13+
#include <linux/i2c.h>
1114
#include <linux/module.h>
15+
#include <linux/of_device.h>
1216
#include <linux/param.h>
13-
#include <linux/err.h>
1417
#include <linux/platform_device.h>
18+
#include <linux/regmap.h>
1519
#include <linux/regulator/driver.h>
20+
#include <linux/regulator/fan53555.h>
1621
#include <linux/regulator/machine.h>
1722
#include <linux/regulator/of_regulator.h>
18-
#include <linux/of_device.h>
19-
#include <linux/i2c.h>
2023
#include <linux/slab.h>
21-
#include <linux/regmap.h>
22-
#include <linux/regulator/fan53555.h>
2324

2425
/* Voltage setting */
2526
#define FAN53555_VSEL0 0x00

0 commit comments

Comments
 (0)