aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-internal.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven <[email protected]>2018-01-03 12:06:15 +0100
committerStephen Boyd <[email protected]>2018-01-10 13:13:23 -0800
commit4c8326d5ebb0de3191e98980c80ab644026728d0 (patch)
tree1ef8d1c0c4d358278bfec77ab56fa0a75fd000b4 /lib/mpi/mpi-internal.h
parenta6059ab98130fb561157682d320c51c5ccd4b647 (diff)
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 <[email protected]> [[email protected]: Squash the octal change in too] Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions