search for: snet_hwmon_ops

Displaying 3 results from an estimated 3 matches for "snet_hwmon_ops".

2023 Apr 07
1
[PATCH] vdpa: solidrun: constify pointers to hwmon_channel_info
...deletion(-) > > diff --git a/drivers/vdpa/solidrun/snet_hwmon.c b/drivers/vdpa/solidrun/snet_hwmon.c > index e695e36ff753..65304354b34a 100644 > --- a/drivers/vdpa/solidrun/snet_hwmon.c > +++ b/drivers/vdpa/solidrun/snet_hwmon.c > @@ -159,7 +159,7 @@ static const struct hwmon_ops snet_hwmon_ops = { > .read_string = snet_hwmon_read_string > }; > > -static const struct hwmon_channel_info *snet_hwmon_info[] = { > +static const struct hwmon_channel_info * const snet_hwmon_info[] = { > HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT | HWMON_T_MAX | HWMON_T_CRIT | HWMON_T_LA...
2023 Apr 10
1
[PATCH] vdpa: solidrun: constify pointers to hwmon_channel_info
...t a/drivers/vdpa/solidrun/snet_hwmon.c b/drivers/vdpa/solidrun/snet_hwmon.c >>> index e695e36ff753..65304354b34a 100644 >>> --- a/drivers/vdpa/solidrun/snet_hwmon.c >>> +++ b/drivers/vdpa/solidrun/snet_hwmon.c >>> @@ -159,7 +159,7 @@ static const struct hwmon_ops snet_hwmon_ops = { >>> .read_string = snet_hwmon_read_string >>> }; >>> -static const struct hwmon_channel_info *snet_hwmon_info[] = { >>> +static const struct hwmon_channel_info * const snet_hwmon_info[] = { >>> HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT | HWMO...
2023 Apr 07
0
[PATCH] vdpa: solidrun: constify pointers to hwmon_channel_info
...deletion(-) > > diff --git a/drivers/vdpa/solidrun/snet_hwmon.c b/drivers/vdpa/solidrun/snet_hwmon.c > index e695e36ff753..65304354b34a 100644 > --- a/drivers/vdpa/solidrun/snet_hwmon.c > +++ b/drivers/vdpa/solidrun/snet_hwmon.c > @@ -159,7 +159,7 @@ static const struct hwmon_ops snet_hwmon_ops = { > .read_string = snet_hwmon_read_string > }; > > -static const struct hwmon_channel_info *snet_hwmon_info[] = { > +static const struct hwmon_channel_info * const snet_hwmon_info[] = { > HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT | HWMON_T_MAX | HWMON_T_CRIT | HWMON_T_LABEL,...