diff options
author | Anton Vorontsov <cbouatmailru@gmail.com> | 2010-04-26 14:10:52 -0400 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2010-05-02 15:41:53 -0400 |
commit | ab6cc8f9b716a3d0a41b42cd81d392183211a7f2 (patch) | |
tree | 42d9c5144593690790656e55bf1405037ddeb32d /fs/ocfs2/extent_map.h | |
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>
Diffstat (limited to 'fs/ocfs2/extent_map.h')
0 files changed, 0 insertions, 0 deletions