mfd: Fix return type of lm533 attribute is_visible
authorJohan Hovold <jhovold@gmail.com>
Sun, 20 May 2012 13:16:10 +0000 (15:16 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 20 May 2012 15:27:14 +0000 (17:27 +0200)
commit6090885597e6500f6671a0f7bab9e82dfa6f38be
tree099288f8157c91e469766ce404ab0be3d7f2d8f7
parent3770c75a6852a87afc66cd514c13899f8a288cef
mfd: Fix return type of lm533 attribute is_visible

Since commit 587a1f1659 ("switch ->is_visible() to returning umode_t")
the return type of is_visible is umode_t rather than mode_t.

This silences a compiler warning on some architectures where these types
are not compatible.

Reported-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/lm3533-core.c