Skip to content

Commit 8908217

Browse files
AxelLinbroonie
authored andcommitted
regulator: mt6315: Fix function prototype for mt6315_map_mode
The .of_map_mode should has below function prototype: unsigned int (*of_map_mode)(unsigned int mode); Signed-off-by: Axel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210530022109.425054-1-axel.lin@ingics.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 5f01de6 commit 8908217

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/regulator/mt6315-regulator.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static const struct linear_range mt_volt_range1[] = {
5959
REGULATOR_LINEAR_RANGE(0, 0, 0xbf, 6250),
6060
};
6161

62-
static unsigned int mt6315_map_mode(u32 mode)
62+
static unsigned int mt6315_map_mode(unsigned int mode)
6363
{
6464
switch (mode) {
6565
case MT6315_BUCK_MODE_AUTO:

0 commit comments

Comments
 (0)