Commit 189387f9 authored by Asaf Vertz's avatar Asaf Vertz Committed by Dmitry Torokhov

Input: edt-ft5x06 - fixed a macro coding style issue

Fixed a coding style error, macros with complex values should be
enclosed in parentheses.
Signed-off-by: default avatarAsaf Vertz <asaf.vertz@tandemg.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 8ed92556
...@@ -850,9 +850,11 @@ static int edt_ft5x06_ts_identify(struct i2c_client *client, ...@@ -850,9 +850,11 @@ static int edt_ft5x06_ts_identify(struct i2c_client *client,
} }
#define EDT_ATTR_CHECKSET(name, reg) \ #define EDT_ATTR_CHECKSET(name, reg) \
do { \
if (pdata->name >= edt_ft5x06_attr_##name.limit_low && \ if (pdata->name >= edt_ft5x06_attr_##name.limit_low && \
pdata->name <= edt_ft5x06_attr_##name.limit_high) \ pdata->name <= edt_ft5x06_attr_##name.limit_high) \
edt_ft5x06_register_write(tsdata, reg, pdata->name) edt_ft5x06_register_write(tsdata, reg, pdata->name); \
} while (0)
#define EDT_GET_PROP(name, reg) { \ #define EDT_GET_PROP(name, reg) { \
u32 val; \ u32 val; \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment