ARM: davinci: Constify the software nodes
Additional device properties are always just a part of a software fwnode. If the device properties are constant, the software node can also be constant. Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Acked-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Wolfram Sang <wsa@kernel.org>
This commit is contained in:
parent
714638e02d
commit
95e272dc36
@ -454,6 +454,10 @@ static const struct property_entry da830_evm_i2c_eeprom_properties[] = {
|
|||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const struct software_node da830_evm_i2c_eeprom_node = {
|
||||||
|
.properties = da830_evm_i2c_eeprom_properties,
|
||||||
|
};
|
||||||
|
|
||||||
static int __init da830_evm_ui_expander_setup(struct i2c_client *client,
|
static int __init da830_evm_ui_expander_setup(struct i2c_client *client,
|
||||||
int gpio, unsigned ngpio, void *context)
|
int gpio, unsigned ngpio, void *context)
|
||||||
{
|
{
|
||||||
@ -485,7 +489,7 @@ static struct pcf857x_platform_data __initdata da830_evm_ui_expander_info = {
|
|||||||
static struct i2c_board_info __initdata da830_evm_i2c_devices[] = {
|
static struct i2c_board_info __initdata da830_evm_i2c_devices[] = {
|
||||||
{
|
{
|
||||||
I2C_BOARD_INFO("24c256", 0x50),
|
I2C_BOARD_INFO("24c256", 0x50),
|
||||||
.properties = da830_evm_i2c_eeprom_properties,
|
.swnode = &da830_evm_i2c_eeprom_node,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
I2C_BOARD_INFO("tlv320aic3x", 0x18),
|
I2C_BOARD_INFO("tlv320aic3x", 0x18),
|
||||||
|
@ -232,10 +232,14 @@ static const struct property_entry eeprom_properties[] = {
|
|||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const struct software_node eeprom_node = {
|
||||||
|
.properties = eeprom_properties,
|
||||||
|
};
|
||||||
|
|
||||||
static struct i2c_board_info i2c_info[] = {
|
static struct i2c_board_info i2c_info[] = {
|
||||||
{
|
{
|
||||||
I2C_BOARD_INFO("24c256", 0x50),
|
I2C_BOARD_INFO("24c256", 0x50),
|
||||||
.properties = eeprom_properties,
|
.swnode = &eeprom_node,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
I2C_BOARD_INFO("tlv320aic3x", 0x18),
|
I2C_BOARD_INFO("tlv320aic3x", 0x18),
|
||||||
|
@ -541,6 +541,10 @@ static const struct property_entry eeprom_properties[] = {
|
|||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const struct software_node eeprom_node = {
|
||||||
|
.properties = eeprom_properties,
|
||||||
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* MSP430 supports RTC, card detection, input from IR remote, and
|
* MSP430 supports RTC, card detection, input from IR remote, and
|
||||||
* a bit more. It triggers interrupts on GPIO(7) from pressing
|
* a bit more. It triggers interrupts on GPIO(7) from pressing
|
||||||
@ -647,7 +651,7 @@ static struct i2c_board_info __initdata i2c_info[] = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
I2C_BOARD_INFO("24c256", 0x50),
|
I2C_BOARD_INFO("24c256", 0x50),
|
||||||
.properties = eeprom_properties,
|
.swnode = &eeprom_node,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
I2C_BOARD_INFO("tlv320aic33", 0x1b),
|
I2C_BOARD_INFO("tlv320aic33", 0x1b),
|
||||||
|
@ -362,6 +362,10 @@ static const struct property_entry eeprom_properties[] = {
|
|||||||
PROPERTY_ENTRY_U32("pagesize", 64),
|
PROPERTY_ENTRY_U32("pagesize", 64),
|
||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const struct software_node eeprom_node = {
|
||||||
|
.properties = eeprom_properties,
|
||||||
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static u8 dm646x_iis_serializer_direction[] = {
|
static u8 dm646x_iis_serializer_direction[] = {
|
||||||
@ -430,7 +434,7 @@ static void evm_init_cpld(void)
|
|||||||
static struct i2c_board_info __initdata i2c_info[] = {
|
static struct i2c_board_info __initdata i2c_info[] = {
|
||||||
{
|
{
|
||||||
I2C_BOARD_INFO("24c256", 0x50),
|
I2C_BOARD_INFO("24c256", 0x50),
|
||||||
.properties = eeprom_properties,
|
.swnode = &eeprom_node,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
I2C_BOARD_INFO("pcf8574a", 0x38),
|
I2C_BOARD_INFO("pcf8574a", 0x38),
|
||||||
|
@ -197,6 +197,10 @@ static const struct property_entry mityomapl138_fd_chip_properties[] = {
|
|||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const struct software_node mityomapl138_fd_chip_node = {
|
||||||
|
.properties = mityomapl138_fd_chip_properties,
|
||||||
|
};
|
||||||
|
|
||||||
static struct davinci_i2c_platform_data mityomap_i2c_0_pdata = {
|
static struct davinci_i2c_platform_data mityomap_i2c_0_pdata = {
|
||||||
.bus_freq = 100, /* kHz */
|
.bus_freq = 100, /* kHz */
|
||||||
.bus_delay = 0, /* usec */
|
.bus_delay = 0, /* usec */
|
||||||
@ -323,7 +327,7 @@ static struct i2c_board_info __initdata mityomap_tps65023_info[] = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
I2C_BOARD_INFO("24c02", 0x50),
|
I2C_BOARD_INFO("24c02", 0x50),
|
||||||
.properties = mityomapl138_fd_chip_properties,
|
.swnode = &mityomapl138_fd_chip_node,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -84,10 +84,14 @@ static const struct property_entry eeprom_properties[] = {
|
|||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const struct software_node eeprom_node = {
|
||||||
|
.properties = eeprom_properties,
|
||||||
|
};
|
||||||
|
|
||||||
static struct i2c_board_info __initdata i2c_info[] = {
|
static struct i2c_board_info __initdata i2c_info[] = {
|
||||||
{
|
{
|
||||||
I2C_BOARD_INFO("24c64", 0x50),
|
I2C_BOARD_INFO("24c64", 0x50),
|
||||||
.properties = eeprom_properties,
|
.swnode = &eeprom_node,
|
||||||
},
|
},
|
||||||
/* Other I2C devices:
|
/* Other I2C devices:
|
||||||
* MSP430, addr 0x23 (not used)
|
* MSP430, addr 0x23 (not used)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user