mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 16:12:59 +02:00
hwmon: (pmbus/core) Declare regulator notification function as void
The regulator notification function never returns an error. Declare it as void. While at it, fix its indentation. No functional change. Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
05452a3328
commit
510db88a1c
|
|
@ -3312,17 +3312,16 @@ static int pmbus_regulator_register(struct pmbus_data *data)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int pmbus_regulator_notify(struct pmbus_data *data, int page, int event)
|
||||
static void pmbus_regulator_notify(struct pmbus_data *data, int page, int event)
|
||||
{
|
||||
int j;
|
||||
int j;
|
||||
|
||||
for (j = 0; j < data->info->num_regulators; j++) {
|
||||
if (page == rdev_get_id(data->rdevs[j])) {
|
||||
regulator_notifier_call_chain(data->rdevs[j], event, NULL);
|
||||
break;
|
||||
}
|
||||
for (j = 0; j < data->info->num_regulators; j++) {
|
||||
if (page == rdev_get_id(data->rdevs[j])) {
|
||||
regulator_notifier_call_chain(data->rdevs[j], event, NULL);
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
#else
|
||||
static int pmbus_regulator_register(struct pmbus_data *data)
|
||||
|
|
@ -3330,9 +3329,8 @@ static int pmbus_regulator_register(struct pmbus_data *data)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int pmbus_regulator_notify(struct pmbus_data *data, int page, int event)
|
||||
static void pmbus_regulator_notify(struct pmbus_data *data, int page, int event)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user