device: Apply driver_api/data attributes rename everywhere
Via coccinelle: @r_device_driver_api_and_data_1@ struct device *D; @@ ( D-> - driver_api + api | D-> - driver_data + data ) @r_device_driver_api_and_data_2@ expression E; @@ ( net_if_get_device(E)-> - driver_api + api | net_if_get_device(E)-> - driver_data + data ) And grep/sed rules for macros: git grep -rlz 'dev)->driver_data' | xargs -0 sed -i 's/dev)->driver_data/dev)->data/g' git grep -rlz 'dev->driver_data' | xargs -0 sed -i 's/dev->driver_data/dev->data/g' git grep -rlz 'device->driver_data' | xargs -0 sed -i 's/device->driver_data/device->data/g' Fixes #27397 Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
d86f79cbd7
commit
98d9b01322
498 changed files with 2085 additions and 2087 deletions
|
@ -210,7 +210,7 @@ static int ssd16xx_blanking_on(const struct device *dev)
|
|||
|
||||
static int ssd16xx_update_display(const struct device *dev)
|
||||
{
|
||||
struct ssd16xx_data *driver = dev->driver_data;
|
||||
struct ssd16xx_data *driver = dev->data;
|
||||
int err;
|
||||
|
||||
err = ssd16xx_write_cmd(driver, SSD16XX_CMD_UPDATE_CTRL2,
|
||||
|
@ -228,7 +228,7 @@ static int ssd16xx_write(const struct device *dev, const uint16_t x,
|
|||
const struct display_buffer_descriptor *desc,
|
||||
const void *buf)
|
||||
{
|
||||
struct ssd16xx_data *driver = dev->driver_data;
|
||||
struct ssd16xx_data *driver = dev->data;
|
||||
int err;
|
||||
size_t buf_len;
|
||||
uint16_t x_start;
|
||||
|
@ -387,7 +387,7 @@ static int ssd16xx_set_pixel_format(const struct device *dev,
|
|||
static int ssd16xx_clear_cntlr_mem(struct device *dev, uint8_t ram_cmd,
|
||||
bool update)
|
||||
{
|
||||
struct ssd16xx_data *driver = dev->driver_data;
|
||||
struct ssd16xx_data *driver = dev->data;
|
||||
uint8_t clear_page[EPD_PANEL_WIDTH];
|
||||
uint16_t panel_h = EPD_PANEL_HEIGHT /
|
||||
EPD_PANEL_NUMOF_ROWS_PER_PAGE;
|
||||
|
@ -435,7 +435,7 @@ static int ssd16xx_clear_cntlr_mem(struct device *dev, uint8_t ram_cmd,
|
|||
|
||||
static inline int ssd16xx_load_ws_from_otp(struct device *dev)
|
||||
{
|
||||
struct ssd16xx_data *driver = dev->driver_data;
|
||||
struct ssd16xx_data *driver = dev->data;
|
||||
uint8_t tmp[2];
|
||||
|
||||
#if DT_INST_NODE_HAS_PROP(0, tssv)
|
||||
|
@ -503,7 +503,7 @@ static inline int ssd16xx_load_ws_from_otp(struct device *dev)
|
|||
static int ssd16xx_load_ws_initial(struct device *dev)
|
||||
{
|
||||
#if DT_INST_NODE_HAS_PROP(0, lut_initial)
|
||||
struct ssd16xx_data *driver = dev->driver_data;
|
||||
struct ssd16xx_data *driver = dev->data;
|
||||
|
||||
if (ssd16xx_write_cmd(driver, SSD16XX_CMD_UPDATE_LUT,
|
||||
ssd16xx_lut_initial,
|
||||
|
@ -522,7 +522,7 @@ static int ssd16xx_load_ws_initial(struct device *dev)
|
|||
static int ssd16xx_load_ws_default(struct device *dev)
|
||||
{
|
||||
#if DT_INST_NODE_HAS_PROP(0, lut_default)
|
||||
struct ssd16xx_data *driver = dev->driver_data;
|
||||
struct ssd16xx_data *driver = dev->data;
|
||||
|
||||
if (ssd16xx_write_cmd(driver, SSD16XX_CMD_UPDATE_LUT,
|
||||
ssd16xx_lut_default,
|
||||
|
@ -541,7 +541,7 @@ static int ssd16xx_controller_init(struct device *dev)
|
|||
int err;
|
||||
uint8_t tmp[3];
|
||||
size_t len;
|
||||
struct ssd16xx_data *driver = dev->driver_data;
|
||||
struct ssd16xx_data *driver = dev->data;
|
||||
|
||||
LOG_DBG("");
|
||||
|
||||
|
@ -643,7 +643,7 @@ static int ssd16xx_controller_init(struct device *dev)
|
|||
|
||||
static int ssd16xx_init(struct device *dev)
|
||||
{
|
||||
struct ssd16xx_data *driver = dev->driver_data;
|
||||
struct ssd16xx_data *driver = dev->data;
|
||||
|
||||
LOG_DBG("");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue