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:
Tao Huang
2025-03-04 19:15:41 +08:00
parent 1d9e4abff3
commit e9fd48e4a9

View File

@@ -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 */