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:
Gerard Marull-Paretas 2022-01-19 12:14:50 +01:00 committed by Carles Cufí
commit 435213a753
20 changed files with 68 additions and 69 deletions

View file

@ -96,7 +96,7 @@ static bool verify_chip(void)
static int ft8xx_init(const struct device *dev)
{
int ret;
const struct ft8xx_config *config = (const struct ft8xx_config *)dev->config;
const struct ft8xx_config *config = dev->config;
ret = ft8xx_drv_init();
if (ret < 0) {