[media] radio-timb: Simplified platform data
authorRichard Röjfors <richard.rojfors@pelagicore.com>
Fri, 10 Jun 2011 14:48:48 +0000 (11:48 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 27 Jul 2011 20:53:07 +0000 (17:53 -0300)
This patch simplifies the platform data slightly, by removing
unused elements.

Signed-off-by: Richard Röjfors <richard.rojfors@pelagicore.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/mfd/timberdale.c
include/media/timb_radio.h

index 69272e4e34596a60b059a4d30f6eadddd4a473c3..696879e2eef77b2429fd8b52e77375a5032e45fc 100644 (file)
@@ -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[] = {
index a59a84854dc1959d5ef2e6c7d4e4f261fcc2d5ce..a40a6a348d21b10ba5d75f439bcd8805ee8342fa 100644 (file)
 
 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