Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] radio-timb: Simplified platform data

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>

authored by

Richard Röjfors and committed by
Mauro Carvalho Chehab
9cd49719 8c528d5e

+4 -13
+2 -6
drivers/mfd/timberdale.c
··· 287 287 static __devinitdata struct timb_radio_platform_data 288 288 timberdale_radio_platform_data = { 289 289 .i2c_adapter = 0, 290 - .tuner = { 291 - .info = &timberdale_tef6868_i2c_board_info 292 - }, 293 - .dsp = { 294 - .info = &timberdale_saa7706_i2c_board_info 295 - } 290 + .tuner = &timberdale_tef6868_i2c_board_info, 291 + .dsp = &timberdale_saa7706_i2c_board_info 296 292 }; 297 293 298 294 static const __devinitconst struct resource timberdale_video_resources[] = {
+2 -7
include/media/timb_radio.h
··· 23 23 24 24 struct timb_radio_platform_data { 25 25 int i2c_adapter; /* I2C adapter where the tuner and dsp are attached */ 26 - struct { 27 - struct i2c_board_info *info; 28 - } tuner; 29 - struct { 30 - const char *module_name; 31 - struct i2c_board_info *info; 32 - } dsp; 26 + struct i2c_board_info *tuner; 27 + struct i2c_board_info *dsp; 33 28 }; 34 29 35 30 #endif