Skip to content

Commit

Permalink
[media] v4l2: SI476X MFD - Do not use binary constants
Browse files Browse the repository at this point in the history
Gcc < 4.3 doesn't understand binary constanrs (0b*):
drivers/media/radio/radio-si476x.c:862:20: error: invalid suffix "b10000000" on integer constant
Hence use a hexadecimal constant (0x*) instead.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Geert Uytterhoeven authored and Mauro Carvalho Chehab committed May 21, 2013
1 parent 96f83b3 commit ab67178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/radio/radio-si476x.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

#define FREQ_MUL (10000000 / 625)

#define SI476X_PHDIV_STATUS_LINK_LOCKED(status) (0b10000000 & (status))
#define SI476X_PHDIV_STATUS_LINK_LOCKED(status) (0x80 & (status))

#define DRIVER_NAME "si476x-radio"
#define DRIVER_CARD "SI476x AM/FM Receiver"
Expand Down

0 comments on commit ab67178

Please sign in to comment.