drivers: remove redundant data/config casts
Some drivers explicitely casted data/config from void * to the corresponding type. However, this is unnecessary and, in many drivers it has been misused to drop const qualifier (refer to previous commits). Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
30971b51ba
commit
435213a753
20 changed files with 68 additions and 69 deletions
|
@ -344,7 +344,7 @@ static int bme680_read_compensation(const struct device *dev)
|
|||
|
||||
static int bme680_chip_init(const struct device *dev)
|
||||
{
|
||||
struct bme680_data *data = (struct bme680_data *)dev->data;
|
||||
struct bme680_data *data = dev->data;
|
||||
int err;
|
||||
|
||||
err = bme680_reg_read(dev, BME680_REG_CHIP_ID, &data->chip_id, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue