drivers: misc: ft8xx: constify device config access
`const` was missing from one device config access. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
93b3cba2f1
commit
50720eb0cb
|
@ -96,7 +96,7 @@ static bool verify_chip(void)
|
|||
static int ft8xx_init(const struct device *dev)
|
||||
{
|
||||
int ret;
|
||||
struct ft8xx_config *config = (struct ft8xx_config *)dev->config;
|
||||
const struct ft8xx_config *config = (const struct ft8xx_config *)dev->config;
|
||||
|
||||
ret = ft8xx_drv_init();
|
||||
if (ret < 0) {
|
||||
|
|
Loading…
Reference in a new issue