device: Fix structure attributes access
Since struct devconfig was merged earlier into struct device, let's fix accessing config_info, name, ... attributes everywhere via: grep -rlZ 'dev->config->' | xargs -0 sed -i 's/dev->config->/dev->/g' Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
8d7bb8ffd8
commit
97326c0445
348 changed files with 1155 additions and 1174 deletions
|
@ -69,7 +69,7 @@ static void iis3dhhc_handle_interrupt(void *arg)
|
|||
struct sensor_trigger drdy_trigger = {
|
||||
.type = SENSOR_TRIG_DATA_READY,
|
||||
};
|
||||
const struct iis3dhhc_config *cfg = dev->config->config_info;
|
||||
const struct iis3dhhc_config *cfg = dev->config_info;
|
||||
|
||||
if (iis3dhhc->handler_drdy != NULL) {
|
||||
iis3dhhc->handler_drdy(dev, &drdy_trigger);
|
||||
|
@ -84,7 +84,7 @@ static void iis3dhhc_gpio_callback(struct device *dev,
|
|||
{
|
||||
struct iis3dhhc_data *iis3dhhc =
|
||||
CONTAINER_OF(cb, struct iis3dhhc_data, gpio_cb);
|
||||
const struct iis3dhhc_config *cfg = dev->config->config_info;
|
||||
const struct iis3dhhc_config *cfg = dev->config_info;
|
||||
|
||||
ARG_UNUSED(pins);
|
||||
|
||||
|
@ -126,7 +126,7 @@ static void iis3dhhc_work_cb(struct k_work *work)
|
|||
int iis3dhhc_init_interrupt(struct device *dev)
|
||||
{
|
||||
struct iis3dhhc_data *iis3dhhc = dev->driver_data;
|
||||
const struct iis3dhhc_config *cfg = dev->config->config_info;
|
||||
const struct iis3dhhc_config *cfg = dev->config_info;
|
||||
int ret;
|
||||
|
||||
/* setup data ready gpio interrupt (INT1 or INT2) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue