Skip to content

Commit

Permalink
media: dvb-frontends: drx39xyj: remove obsolete sign extend macros
Browse files Browse the repository at this point in the history
DRX_S9TOS16 and DRX_S24TODRXFREQ are simply not used. Furthermore,
sign_extend32() should be used for sign extension. (Also, the comment
describing DRX_S24TODRXFREQ was wrong). So remove these macros.

Signed-off-by: Martin Kepplinger <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
merge authored and mchehab committed Jun 24, 2017
1 parent 6a1560e commit e1d00cd
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions drivers/media/dvb-frontends/drx39xyj/drx_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -449,19 +449,6 @@ MACROS
#define DRX_16TO8(x) ((u8) (((u16)x) & 0xFF)), \
((u8)((((u16)x)>>8)&0xFF))

/**
* \brief Macro to sign extend signed 9 bit value to signed 16 bit value
*/
#define DRX_S9TOS16(x) ((((u16)x)&0x100) ? ((s16)((u16)(x)|0xFF00)) : (x))

/**
* \brief Macro to sign extend signed 9 bit value to signed 16 bit value
*/
#define DRX_S24TODRXFREQ(x) ((((u32) x) & 0x00800000UL) ? \
((s32) \
(((u32) x) | 0xFF000000)) : \
((s32) x))

/**
* \brief Macro to convert 16 bit register value to a s32
*/
Expand Down

0 comments on commit e1d00cd

Please sign in to comment.