From patchwork Fri Jun 10 14:48:48 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmljaGFyZCBSw4PCtmpmb3Jz?= X-Patchwork-Id: 869882 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p5AEn73m027210 for ; Fri, 10 Jun 2011 14:49:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756696Ab1FJOsx (ORCPT ); Fri, 10 Jun 2011 10:48:53 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:52515 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754949Ab1FJOsv (ORCPT ); Fri, 10 Jun 2011 10:48:51 -0400 Received: by mail-wy0-f174.google.com with SMTP id 21so1913781wya.19 for ; Fri, 10 Jun 2011 07:48:51 -0700 (PDT) Received: by 10.227.54.196 with SMTP id r4mr2177483wbg.68.1307717331143; Fri, 10 Jun 2011 07:48:51 -0700 (PDT) Received: from [10.8.36.162] (194-237-7-146.customer.telia.com [194.237.7.146]) by mx.google.com with ESMTPS id b10sm2082070wbh.60.2011.06.10.07.48.49 (version=SSLv3 cipher=OTHER); Fri, 10 Jun 2011 07:48:50 -0700 (PDT) Subject: [PATCH 1/2] radio-timb: Simplified platform data From: Richard =?ISO-8859-1?Q?R=F6jfors?= To: linux-media@vger.kernel.org Cc: Hans Verkuil , Mauro Carvalho Chehab Organization: Pelagicore AB Date: Fri, 10 Jun 2011 16:48:48 +0200 Message-ID: <1307717328.2420.29.camel@debian> Mime-Version: 1.0 X-Mailer: Evolution 2.32.3 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 10 Jun 2011 14:49:07 +0000 (UTC) This patch simplifies the platform data slightly, by removing unused elements. Signed-off-by: Richard Röjfors --- -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/mfd/timberdale.c b/drivers/mfd/timberdale.c index 69272e4..696879e 100644 --- a/drivers/mfd/timberdale.c +++ b/drivers/mfd/timberdale.c @@ -287,12 +287,8 @@ static __devinitdata struct i2c_board_info timberdale_saa7706_i2c_board_info = { static __devinitdata struct timb_radio_platform_data timberdale_radio_platform_data = { .i2c_adapter = 0, - .tuner = { - .info = &timberdale_tef6868_i2c_board_info - }, - .dsp = { - .info = &timberdale_saa7706_i2c_board_info - } + .tuner = &timberdale_tef6868_i2c_board_info, + .dsp = &timberdale_saa7706_i2c_board_info }; static const __devinitconst struct resource timberdale_video_resources[] = { diff --git a/include/media/timb_radio.h b/include/media/timb_radio.h index a59a848..a40a6a3 100644 --- a/include/media/timb_radio.h +++ b/include/media/timb_radio.h @@ -23,13 +23,8 @@ struct timb_radio_platform_data { int i2c_adapter; /* I2C adapter where the tuner and dsp are attached */ - struct { - struct i2c_board_info *info; - } tuner; - struct { - const char *module_name; - struct i2c_board_info *info; - } dsp; + struct i2c_board_info *tuner; + struct i2c_board_info *dsp; }; #endif