Commit 82f26185 authored by kbuild test robot's avatar kbuild test robot Committed by Mark Brown

regulator: ready_mask_table[] can be static

Fixes: 6cdae817 ("regulator: Add support for stm32 power regulators")
Signed-off-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent fd1a4da3
...@@ -32,7 +32,7 @@ enum { ...@@ -32,7 +32,7 @@ enum {
STM32PWR_REG_NUM_REGS STM32PWR_REG_NUM_REGS
}; };
u32 ready_mask_table[STM32PWR_REG_NUM_REGS] = { static u32 ready_mask_table[STM32PWR_REG_NUM_REGS] = {
[PWR_REG11] = REG_1_1_RDY, [PWR_REG11] = REG_1_1_RDY,
[PWR_REG18] = REG_1_8_RDY, [PWR_REG18] = REG_1_8_RDY,
[PWR_USB33] = USB_3_3_RDY, [PWR_USB33] = USB_3_3_RDY,
...@@ -44,7 +44,7 @@ struct stm32_pwr_reg { ...@@ -44,7 +44,7 @@ struct stm32_pwr_reg {
u32 ready_mask; u32 ready_mask;
}; };
int stm32_pwr_reg_is_ready(struct regulator_dev *rdev) static int stm32_pwr_reg_is_ready(struct regulator_dev *rdev)
{ {
struct stm32_pwr_reg *priv = rdev_get_drvdata(rdev); struct stm32_pwr_reg *priv = rdev_get_drvdata(rdev);
u32 val; u32 val;
...@@ -54,7 +54,7 @@ int stm32_pwr_reg_is_ready(struct regulator_dev *rdev) ...@@ -54,7 +54,7 @@ int stm32_pwr_reg_is_ready(struct regulator_dev *rdev)
return (val & priv->ready_mask); return (val & priv->ready_mask);
} }
int stm32_pwr_reg_is_enabled(struct regulator_dev *rdev) static int stm32_pwr_reg_is_enabled(struct regulator_dev *rdev)
{ {
struct stm32_pwr_reg *priv = rdev_get_drvdata(rdev); struct stm32_pwr_reg *priv = rdev_get_drvdata(rdev);
u32 val; u32 val;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment