misc/at24: add more sanity checks for parameters
authorWolfram Sang <w.sang@pengutronix.de>
Wed, 17 Nov 2010 12:00:49 +0000 (13:00 +0100)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 24 Dec 2010 09:14:17 +0000 (02:14 -0700)
commit45efe847971e6274a04eea75a0745d8015b54d37
tree62d4ee35aed2c4d36ac0099cd66caedbf9dd42d5
parent9ed030d728f3bd03b6e869357da02725afda19a7
misc/at24: add more sanity checks for parameters

Side-effects happen when passing 0 to either io_limit or page_size. Give
an error in case of this misconfiguration.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/misc/eeprom/at24.c