device: Apply config_info rename everywhere
Via coccinelle: @r_device_config@ struct device *D; @@ D-> - config_info + config And 2 grep/sed rules for macros: git grep -rlz 'dev)->config_info' | xargs -0 sed -i 's/dev)->config_info/dev)->config/g' git grep -rlz 'dev->config_info' | xargs -0 sed -i 's/dev->config_info/dev->config/g' Fixes #27397 Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
a46b4a9921
commit
af6140cc0d
324 changed files with 1048 additions and 1071 deletions
|
@ -23,7 +23,7 @@ static inline void setup_int(struct device *dev,
|
|||
{
|
||||
struct bmg160_device_data *data = dev->driver_data;
|
||||
const struct bmg160_device_config *const cfg =
|
||||
dev->config_info;
|
||||
dev->config;
|
||||
|
||||
gpio_pin_interrupt_configure(data->gpio,
|
||||
cfg->int_pin,
|
||||
|
@ -208,7 +208,7 @@ static void bmg160_work_cb(struct k_work *work)
|
|||
|
||||
int bmg160_trigger_init(struct device *dev)
|
||||
{
|
||||
const struct bmg160_device_config *cfg = dev->config_info;
|
||||
const struct bmg160_device_config *cfg = dev->config;
|
||||
struct bmg160_device_data *bmg160 = dev->driver_data;
|
||||
|
||||
/* set INT1 pin to: push-pull, active low */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue