isp1704_charger: Correct length for storing model

Model should have room to accommodate the trailing null byte,
"isp170[4|7]\0".

Signed-off-by: Ameya Palande <ameya.palande@nokia.com>
Acked-by: Heikki Krogerus <heikki.krogerus@nokia.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
This commit is contained in:
Ameya Palande 2010-11-04 16:31:46 +02:00 committed by Anton Vorontsov
parent 5070437cd9
commit 746d8fb8c6
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ struct isp1704_charger {
struct notifier_block nb;
struct work_struct work;
char model[7];
char model[8];
unsigned present:1;
};