mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 10:09:10 +02:00
iio: ssp_sensors: cleanup codestyle check
Reported by checkpatch: FILE: drivers/iio/common/ssp_sensors/ssp_spi.c CHECK: Macro argument '...' may be better as '(...)' to avoid precedence issues Signed-off-by: Sanjay Chitroda <sanjayembeddedse@gmail.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
dcc80f2fdf
commit
a9ecd9a121
|
|
@ -6,7 +6,7 @@
|
|||
#include "ssp.h"
|
||||
|
||||
#define SSP_DEV (&data->spi->dev)
|
||||
#define SSP_GET_MESSAGE_TYPE(data) (data & (3 << SSP_RW))
|
||||
#define SSP_GET_MESSAGE_TYPE(data) ((data) & (3 << SSP_RW))
|
||||
|
||||
/*
|
||||
* SSP -> AP Instruction
|
||||
|
|
@ -119,9 +119,9 @@ static inline void ssp_get_buffer(struct ssp_msg *m, unsigned int offset,
|
|||
}
|
||||
|
||||
#define SSP_GET_BUFFER_AT_INDEX(m, index) \
|
||||
(m->buffer[SSP_HEADER_SIZE_ALIGNED + index])
|
||||
((m)->buffer[SSP_HEADER_SIZE_ALIGNED + (index)])
|
||||
#define SSP_SET_BUFFER_AT_INDEX(m, index, val) \
|
||||
(m->buffer[SSP_HEADER_SIZE_ALIGNED + index] = val)
|
||||
((m)->buffer[SSP_HEADER_SIZE_ALIGNED + (index)] = val)
|
||||
|
||||
static void ssp_clean_msg(struct ssp_msg *m)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user