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
|
@ -100,7 +100,7 @@ static int ht16k33_led_blink(struct device *dev, uint32_t led,
|
|||
/* The HT16K33 blinks all LEDs at the same frequency */
|
||||
ARG_UNUSED(led);
|
||||
|
||||
const struct ht16k33_cfg *config = dev->config_info;
|
||||
const struct ht16k33_cfg *config = dev->config;
|
||||
struct ht16k33_data *data = dev->driver_data;
|
||||
struct led_data *dev_data = &data->dev_data;
|
||||
uint32_t period;
|
||||
|
@ -135,7 +135,7 @@ static int ht16k33_led_set_brightness(struct device *dev, uint32_t led,
|
|||
{
|
||||
ARG_UNUSED(led);
|
||||
|
||||
const struct ht16k33_cfg *config = dev->config_info;
|
||||
const struct ht16k33_cfg *config = dev->config;
|
||||
struct ht16k33_data *data = dev->driver_data;
|
||||
struct led_data *dev_data = &data->dev_data;
|
||||
uint8_t dim;
|
||||
|
@ -159,7 +159,7 @@ static int ht16k33_led_set_brightness(struct device *dev, uint32_t led,
|
|||
|
||||
static int ht16k33_led_set_state(struct device *dev, uint32_t led, bool on)
|
||||
{
|
||||
const struct ht16k33_cfg *config = dev->config_info;
|
||||
const struct ht16k33_cfg *config = dev->config;
|
||||
struct ht16k33_data *data = dev->driver_data;
|
||||
uint8_t cmd[2];
|
||||
uint8_t addr;
|
||||
|
@ -206,7 +206,7 @@ static int ht16k33_led_off(struct device *dev, uint32_t led)
|
|||
#ifdef CONFIG_HT16K33_KEYSCAN
|
||||
uint32_t ht16k33_get_pending_int(struct device *dev)
|
||||
{
|
||||
const struct ht16k33_cfg *config = dev->config_info;
|
||||
const struct ht16k33_cfg *config = dev->config;
|
||||
struct ht16k33_data *data = dev->driver_data;
|
||||
uint8_t cmd;
|
||||
uint8_t flag;
|
||||
|
@ -225,7 +225,7 @@ uint32_t ht16k33_get_pending_int(struct device *dev)
|
|||
|
||||
static bool ht16k33_process_keyscan_data(struct device *dev)
|
||||
{
|
||||
const struct ht16k33_cfg *config = dev->config_info;
|
||||
const struct ht16k33_cfg *config = dev->config;
|
||||
struct ht16k33_data *data = dev->driver_data;
|
||||
uint8_t keys[HT16K33_KEYSCAN_DATA_SIZE];
|
||||
bool pressed = false;
|
||||
|
@ -321,7 +321,7 @@ int ht16k33_register_keyscan_device(struct device *parent,
|
|||
|
||||
static int ht16k33_init(struct device *dev)
|
||||
{
|
||||
const struct ht16k33_cfg *config = dev->config_info;
|
||||
const struct ht16k33_cfg *config = dev->config;
|
||||
struct ht16k33_data *data = dev->driver_data;
|
||||
struct led_data *dev_data = &data->dev_data;
|
||||
uint8_t cmd[1 + HT16K33_DISP_DATA_SIZE]; /* 1 byte command + data */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue