Message ID | 20210112014931.5429-1-dong.menglong@zte.com.cn (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
Series | power: supply: remove duplicated argument in power_supply_hwmon_info | expand |
Hi, On Mon, Jan 11, 2021 at 05:49:31PM -0800, menglong8.dong@gmail.com wrote: > From: Menglong Dong <dong.menglong@zte.com.cn> > > 'HWMON_T_INPUT' and 'HWMON_T_MIN_ALARM' in power_supply_hwmon_info are > duplicated and can be removed. > > Signed-off-by: Menglong Dong <dong.menglong@zte.com.cn> > --- Thanks, queued. -- Sebastian > drivers/power/supply/power_supply_hwmon.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/power/supply/power_supply_hwmon.c b/drivers/power/supply/power_supply_hwmon.c > index 7fe4b6b6ddc8..bffe6d84c429 100644 > --- a/drivers/power/supply/power_supply_hwmon.c > +++ b/drivers/power/supply/power_supply_hwmon.c > @@ -299,13 +299,11 @@ static const struct hwmon_channel_info *power_supply_hwmon_info[] = { > HWMON_T_INPUT | > HWMON_T_MAX | > HWMON_T_MIN | > - HWMON_T_MIN_ALARM | > HWMON_T_MIN_ALARM, > > HWMON_T_LABEL | > HWMON_T_INPUT | > HWMON_T_MIN_ALARM | > - HWMON_T_LABEL | > HWMON_T_MAX_ALARM), > > HWMON_CHANNEL_INFO(curr, > -- > 2.17.1 >
diff --git a/drivers/power/supply/power_supply_hwmon.c b/drivers/power/supply/power_supply_hwmon.c index 7fe4b6b6ddc8..bffe6d84c429 100644 --- a/drivers/power/supply/power_supply_hwmon.c +++ b/drivers/power/supply/power_supply_hwmon.c @@ -299,13 +299,11 @@ static const struct hwmon_channel_info *power_supply_hwmon_info[] = { HWMON_T_INPUT | HWMON_T_MAX | HWMON_T_MIN | - HWMON_T_MIN_ALARM | HWMON_T_MIN_ALARM, HWMON_T_LABEL | HWMON_T_INPUT | HWMON_T_MIN_ALARM | - HWMON_T_LABEL | HWMON_T_MAX_ALARM), HWMON_CHANNEL_INFO(curr,