Skip to content

Commit d10268a

Browse files
andy-shevbroonie
authored andcommitted
regmap: trace: Remove explicit castings
There is no need to have explicit castings to the same type the variables are of. Remove the explicit castings. Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Steven Rostedt (Google) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent f78d5e1 commit d10268a

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

drivers/base/regmap/trace.h

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ DECLARE_EVENT_CLASS(regmap_reg,
3232
__entry->val = val;
3333
),
3434

35-
TP_printk("%s reg=%x val=%x", __get_str(name),
36-
(unsigned int)__entry->reg,
37-
(unsigned int)__entry->val)
35+
TP_printk("%s reg=%x val=%x", __get_str(name), __entry->reg, __entry->val)
3836
);
3937

4038
DEFINE_EVENT(regmap_reg, regmap_reg_write,
@@ -85,8 +83,7 @@ DECLARE_EVENT_CLASS(regmap_bulk,
8583
memcpy(__get_dynamic_array(buf), val, val_len);
8684
),
8785

88-
TP_printk("%s reg=%x val=%s", __get_str(name),
89-
(unsigned int)__entry->reg,
86+
TP_printk("%s reg=%x val=%s", __get_str(name), __entry->reg,
9087
__print_hex(__get_dynamic_array(buf), __entry->val_len))
9188
);
9289

@@ -124,9 +121,7 @@ DECLARE_EVENT_CLASS(regmap_block,
124121
__entry->count = count;
125122
),
126123

127-
TP_printk("%s reg=%x count=%d", __get_str(name),
128-
(unsigned int)__entry->reg,
129-
(int)__entry->count)
124+
TP_printk("%s reg=%x count=%d", __get_str(name), __entry->reg, __entry->count)
130125
);
131126

132127
DEFINE_EVENT(regmap_block, regmap_hw_read_start,
@@ -196,8 +191,7 @@ DECLARE_EVENT_CLASS(regmap_bool,
196191
__entry->flag = flag;
197192
),
198193

199-
TP_printk("%s flag=%d", __get_str(name),
200-
(int)__entry->flag)
194+
TP_printk("%s flag=%d", __get_str(name), __entry->flag)
201195
);
202196

203197
DEFINE_EVENT(regmap_bool, regmap_cache_only,
@@ -283,8 +277,7 @@ TRACE_EVENT(regcache_drop_region,
283277
__entry->to = to;
284278
),
285279

286-
TP_printk("%s %u-%u", __get_str(name), (unsigned int)__entry->from,
287-
(unsigned int)__entry->to)
280+
TP_printk("%s %u-%u", __get_str(name), __entry->from, __entry->to)
288281
);
289282

290283
#endif /* _TRACE_REGMAP_H */

0 commit comments

Comments
 (0)