power: ds2780_battery: clean up eeprom read/write functions
authorVladimir Zapolskiy <vz@mleia.com>
Sun, 26 Jul 2015 21:26:47 +0000 (00:26 +0300)
committerSebastian Reichel <sre@kernel.org>
Mon, 27 Jul 2015 14:28:54 +0000 (16:28 +0200)
commit753f15833c4d782ee41e333f66bfe424a39680e6
tree7cf7ea0529a7433639f9b9dcbef4fc6827962411
parent71a5a508436332ac40f688ef06e61628f25f3e5b
power: ds2780_battery: clean up eeprom read/write functions

The change removes redundant sysfs binary file boundary checks while
reading or writing "param_eeprom" or "user_eeprom", the checks are not
needed, since this task is done on caller side in fs/sysfs/file.c

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/ds2780_battery.c