Lines Matching refs:i2c_peripherals
71 struct i2c_peripheral *i2c_peripherals; member
142 i2c_dev = &cros_laptop->i2c_peripherals[i]; in chromeos_laptop_check_adapter()
215 i2c_dev = &cros_laptop->i2c_peripherals[i]; in chromeos_laptop_detach_i2c_client()
252 .i2c_peripherals = _name##_peripherals, \
743 struct i2c_peripheral *i2c_peripherals; in chromeos_laptop_prepare_i2c_peripherals() local
752 i2c_peripherals = kmemdup(src->i2c_peripherals, in chromeos_laptop_prepare_i2c_peripherals()
754 sizeof(*src->i2c_peripherals), in chromeos_laptop_prepare_i2c_peripherals()
756 if (!i2c_peripherals) in chromeos_laptop_prepare_i2c_peripherals()
760 i2c_dev = &i2c_peripherals[i]; in chromeos_laptop_prepare_i2c_peripherals()
777 cros_laptop->i2c_peripherals = i2c_peripherals; in chromeos_laptop_prepare_i2c_peripherals()
784 i2c_dev = &i2c_peripherals[i]; in chromeos_laptop_prepare_i2c_peripherals()
789 kfree(i2c_peripherals); in chromeos_laptop_prepare_i2c_peripherals()
862 i2c_dev = &cros_laptop->i2c_peripherals[i]; in chromeos_laptop_destroy()
875 kfree(cros_laptop->i2c_peripherals); in chromeos_laptop_destroy()