Skip to content

Commit 510db88

Browse files
committed
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>
1 parent 05452a3 commit 510db88

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

drivers/hwmon/pmbus/pmbus_core.c

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3312,27 +3312,25 @@ static int pmbus_regulator_register(struct pmbus_data *data)
33123312
return 0;
33133313
}
33143314

3315-
static int pmbus_regulator_notify(struct pmbus_data *data, int page, int event)
3315+
static void pmbus_regulator_notify(struct pmbus_data *data, int page, int event)
33163316
{
3317-
int j;
3317+
int j;
33183318

3319-
for (j = 0; j < data->info->num_regulators; j++) {
3320-
if (page == rdev_get_id(data->rdevs[j])) {
3321-
regulator_notifier_call_chain(data->rdevs[j], event, NULL);
3322-
break;
3323-
}
3319+
for (j = 0; j < data->info->num_regulators; j++) {
3320+
if (page == rdev_get_id(data->rdevs[j])) {
3321+
regulator_notifier_call_chain(data->rdevs[j], event, NULL);
3322+
break;
33243323
}
3325-
return 0;
3324+
}
33263325
}
33273326
#else
33283327
static int pmbus_regulator_register(struct pmbus_data *data)
33293328
{
33303329
return 0;
33313330
}
33323331

3333-
static int pmbus_regulator_notify(struct pmbus_data *data, int page, int event)
3332+
static void pmbus_regulator_notify(struct pmbus_data *data, int page, int event)
33343333
{
3335-
return 0;
33363334
}
33373335
#endif
33383336

0 commit comments

Comments
 (0)