commit | ab6cc8f9b716a3d0a41b42cd81d392183211a7f2 | [log] [tgz] |
---|---|---|
author | Anton Vorontsov <cbouatmailru@gmail.com> | Mon Apr 26 22:10:52 2010 +0400 |
committer | Anton Vorontsov <cbouatmailru@gmail.com> | Sun May 02 23:41:53 2010 +0400 |
tree | 42d9c5144593690790656e55bf1405037ddeb32d | |
parent | 9b9ade6b612e562c4a5bd02ef38cc32e10f3f9ba [diff] |
ds2782_battery: Get rid of magic numbers in driver_data Constructions like 'if (id->driver_data == 1)' look quite weird. This patch introduces 'enum ds278x_num_id', which makes things much more understandable, i.e. 'if (id->driver_data == DS2786)'. Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com> Acked-by: Mike Rapoport <mike@compulab.co.il>