mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
input: sensors: avoid -Wempty-body warning
drivers/input/sensors/accel/bma2xx.c:2093:47: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
2093 | DBG("set bandwidth failed!\n");
| ^
Change the empty debug macros to no_printk(), which avoids the
warnings and adds useful format string checks.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I41d3b2eb23fef6f37a7680e869858be27ece3250
This commit is contained in:
@@ -270,7 +270,7 @@ extern int sensor_unregister_device(struct i2c_client *client,
|
||||
extern void sensor_shutdown(struct i2c_client *client);
|
||||
extern const struct dev_pm_ops sensor_pm_ops;
|
||||
|
||||
#define DBG(x...)
|
||||
#define DBG(x...) no_printk(x)
|
||||
|
||||
#define GSENSOR_IOCTL_MAGIC 'a'
|
||||
#define GBUFF_SIZE 12 /* Rx buffer size */
|
||||
|
||||
Reference in New Issue
Block a user