> On Apr 23, 2019, at 09:33, Guenter Roeck <[email protected]> wrote: > > - > + dac = pwm_to_dac(pwm, data->config & MAX6650_CFG_V12); > + err = i2c_smbus_write_byte_data(client, MAX6650_REG_DAC, dac); > + if (!err) > + data->dac = dac; > mutex_unlock(&data->update_lock); > > return err < 0 ? err : count; When I created max6650_set_cur_state, I copied over the pwm1_store code. I ended up with a "return err < 0 ? ..." which I adjusted. However, as my colleague pointed out, the set_cur_state return style matches that of i2c_smbus_write_byte_data so we should simply "return err;" in max6650_set_cur_state. Since the driver is in great flux state right now, I cannot make a patch only for that and you should probably just include that in your series. Or I can submit it later when your series is applied?
- [PATCH 01/11] hwmon: (max6650) Use devm_add_action ... Guenter Roeck
- [PATCH 09/11] hwmon: (max6650) Improve error h... Guenter Roeck
- [PATCH 10/11] hwmon: (max6650) Use SPDX licens... Guenter Roeck
- [PATCH 02/11] hwmon: (max6650) Introduce pwm_t... Guenter Roeck
- Re: [PATCH 02/11] hwmon: (max6650) Introdu... Jean-Francois Dagenais
- Re: [PATCH 02/11] hwmon: (max6650) Int... Guenter Roeck
- [PATCH 08/11] hwmon: (max6650) Read non-volati... Guenter Roeck
- [PATCH 05/11] hwmon: (max6650) Cache alarm_en ... Guenter Roeck
- [PATCH 04/11] hwmon: (max6650) Declare valid a... Guenter Roeck
- [PATCH 06/11] hwmon: (max6650) Simplify alarm ... Guenter Roeck
- [PATCH 03/11] hwmon: (max6650) Improve error h... Guenter Roeck
- [PATCH 11/11] hwmon: (max6650) Fix minor forma... Guenter Roeck
- Re: [PATCH 11/11] hwmon: (max6650) Fix min... Jean-Francois Dagenais
- Re: [PATCH 11/11] hwmon: (max6650) Fix... Guenter Roeck
- [PATCH 07/11] hwmon: (max6650) Convert to use ... Guenter Roeck
