: Error handling in max17042_battery.c
I guess your spam filter filtered out my reply..?
The reply posted 3 days ago: https://lkml.org/lkml/2011/8/26/32
In short, please go ahead.
Cheers
MyungJoo
------- Original Message -------
Sender : Pallala, Ramakrishna<[email protected]> Date : 2011-08-29 14:30 (GMT+09:00)
Title : RE: [Power-supply]: Error handling in max17042_battery.c
Quoted 5 lines
Hi All,
I am working on the I2C based max17042 fuel gauge driver Which is
drivers/power/max17042_battery.c
Quoted 7 lines
In
max17042_get_property(...), the values returned byMax17042_read_regare directly assigned to the variables, even if the read results in an error. Shouldn't we check for the 'correctness' of the returned values and then assign them ? Can I submit a patch to change this ?Or Is this done intentionally ?
Any inputs on this?
Thanks,
Ram
MyungJoo Ham (함명주)
Mobile Software Platform Lab,
Digital Media and Communications (DMC) Business
Samsung Electronics
cell: +82-10-6714-2858 / office: +82-31-279-8033�淸�{.n�+돴윯돪�+%듚�깁負쪐w��{.n�+돴쪐{깸G쳺��{ay����,j�f"톒쉹��묎�z_溫(�쉸듶줷"얎�m����G쳺�◀?솳鈺�&x�~뤳턨O뺞촾퇉v�^�m����띠�◀?뻀�