summaryrefslogtreecommitdiff
path: root/block/partitions/efi.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2018-01-03 14:06:15 +0300
committerStephen Boyd <sboyd@codeaurora.org>2018-01-11 00:13:23 +0300
commit4c8326d5ebb0de3191e98980c80ab644026728d0 (patch)
tree1ef8d1c0c4d358278bfec77ab56fa0a75fd000b4 /block/partitions/efi.c
parenta6059ab98130fb561157682d320c51c5ccd4b647 (diff)
downloadlinux-4c8326d5ebb0de3191e98980c80ab644026728d0.tar.xz
clk: Fix debugfs_create_*() usage
When exposing data access through debugfs, the correct debugfs_create_*() functions must be used, matching the data types. Remove all casts from data pointers passed to debugfs_create_*() functions, as such casts prevent the compiler from flagging bugs. clk_core.rate and .accuracy are "unsigned long", hence casting their addresses to "u32 *" exposed the wrong halves on big-endian 64-bit systems. Fix this by using debugfs_create_ulong() instead. Octal permissions are preferred, as they are easier to read than symbolic permissions. Hence replace "S_IRUGO" by "0444" throughout. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> [sboyd@codeaurora.org: Squash the octal change in too] Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'block/partitions/efi.c')
0 files changed, 0 insertions, 0 deletions