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 <andriy.shevchenko@linux.intel.com>
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Link: https://lore.kernel.org/r/20220901132336.33234-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Andy Shevchenko 2022-09-01 16:23:35 +03:00 committed by Mark Brown
parent f78d5e1168
commit d10268a50b
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0
1 changed files with 5 additions and 12 deletions

View File

@ -32,9 +32,7 @@ DECLARE_EVENT_CLASS(regmap_reg,
__entry->val = val; __entry->val = val;
), ),
TP_printk("%s reg=%x val=%x", __get_str(name), TP_printk("%s reg=%x val=%x", __get_str(name), __entry->reg, __entry->val)
(unsigned int)__entry->reg,
(unsigned int)__entry->val)
); );
DEFINE_EVENT(regmap_reg, regmap_reg_write, DEFINE_EVENT(regmap_reg, regmap_reg_write,
@ -85,8 +83,7 @@ DECLARE_EVENT_CLASS(regmap_bulk,
memcpy(__get_dynamic_array(buf), val, val_len); memcpy(__get_dynamic_array(buf), val, val_len);
), ),
TP_printk("%s reg=%x val=%s", __get_str(name), TP_printk("%s reg=%x val=%s", __get_str(name), __entry->reg,
(unsigned int)__entry->reg,
__print_hex(__get_dynamic_array(buf), __entry->val_len)) __print_hex(__get_dynamic_array(buf), __entry->val_len))
); );
@ -124,9 +121,7 @@ DECLARE_EVENT_CLASS(regmap_block,
__entry->count = count; __entry->count = count;
), ),
TP_printk("%s reg=%x count=%d", __get_str(name), TP_printk("%s reg=%x count=%d", __get_str(name), __entry->reg, __entry->count)
(unsigned int)__entry->reg,
(int)__entry->count)
); );
DEFINE_EVENT(regmap_block, regmap_hw_read_start, DEFINE_EVENT(regmap_block, regmap_hw_read_start,
@ -196,8 +191,7 @@ DECLARE_EVENT_CLASS(regmap_bool,
__entry->flag = flag; __entry->flag = flag;
), ),
TP_printk("%s flag=%d", __get_str(name), TP_printk("%s flag=%d", __get_str(name), __entry->flag)
(int)__entry->flag)
); );
DEFINE_EVENT(regmap_bool, regmap_cache_only, DEFINE_EVENT(regmap_bool, regmap_cache_only,
@ -283,8 +277,7 @@ TRACE_EVENT(regcache_drop_region,
__entry->to = to; __entry->to = to;
), ),
TP_printk("%s %u-%u", __get_str(name), (unsigned int)__entry->from, TP_printk("%s %u-%u", __get_str(name), __entry->from, __entry->to)
(unsigned int)__entry->to)
); );
#endif /* _TRACE_REGMAP_H */ #endif /* _TRACE_REGMAP_H */