Re: [PATCH v5 3/3] hwmon: pmbus: add MPQ8646 driver

Vincent Jardin <[email protected]>
Newsgroups org.kernel.vger.linux-hwmon,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
Hi Guenter,

> > +	for (i = 0; i < ARRAY_SIZE(mpq8646_alarm_map); i++) {
> > +		if (newly_set & mpq8646_alarm_map[i].mask)
> > +			hwmon_notify_event(priv->hwmon_dev,
> > +					   mpq8646_alarm_map[i].type,
> > +					   mpq8646_alarm_map[i].attr,
> > +					   mpq8646_alarm_map[i].channel);
> 
> This is wrong. This will require a new exported notification function
> in pmbus code.

OK, next, I'll try to factor the body of pmbus_fault_handler() into
an exported helper, something like pmbus_check_and_notify_faults(client).

It should help to revisit it.

Best regards,
  Vincent
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.