From patchwork Wed May 8 20:23:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 2541591 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 46CFDDF2E5 for ; Wed, 8 May 2013 20:24:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757621Ab3EHUXw (ORCPT ); Wed, 8 May 2013 16:23:52 -0400 Received: from gerard.telenet-ops.be ([195.130.132.48]:41966 "EHLO gerard.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757499Ab3EHUXv (ORCPT ); Wed, 8 May 2013 16:23:51 -0400 Received: from ayla.of.borg ([84.193.72.141]) by gerard.telenet-ops.be with bizsmtp id ZYPp1l00D32ts5g0HYPpa3; Wed, 08 May 2013 22:23:49 +0200 Received: from geert by ayla.of.borg with local (Exim 4.71) (envelope-from ) id 1UaAtx-0006g9-2t; Wed, 08 May 2013 22:23:49 +0200 From: Geert Uytterhoeven To: Andrey Smirnov Cc: linux-kernel@vger.kernel.org, Geert Uytterhoeven , Mauro Carvalho Chehab , linux-media@vger.kernel.org Subject: [PATCH 1/2] [media] v4l2: SI476X MFD - Do not use binary constants Date: Wed, 8 May 2013 22:23:41 +0200 Message-Id: <1368044622-25645-1-git-send-email-geert@linux-m68k.org> X-Mailer: git-send-email 1.7.0.4 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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 Cc: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org Acked-by: Andrey Smirnov --- drivers/media/radio/radio-si476x.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/radio/radio-si476x.c b/drivers/media/radio/radio-si476x.c index 9430c6a..9dc8baf 100644 --- a/drivers/media/radio/radio-si476x.c +++ b/drivers/media/radio/radio-si476x.c @@ -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"