aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/inode.h
diff options
context:
space:
mode:
authorAnton Vorontsov <cbouatmailru@gmail.com>2010-04-26 14:10:52 -0400
committerAnton Vorontsov <cbouatmailru@gmail.com>2010-05-02 15:41:53 -0400
commitab6cc8f9b716a3d0a41b42cd81d392183211a7f2 (patch)
tree42d9c5144593690790656e55bf1405037ddeb32d /fs/ocfs2/inode.h
parent9b9ade6b612e562c4a5bd02ef38cc32e10f3f9ba (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/inode.h')
0 files changed, 0 insertions, 0 deletions