drivers: i2s: litex: 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
63d696e3b8
commit
93d48baa16
1 changed files with 1 additions and 1 deletions
|
@ -306,7 +306,7 @@ static int queue_put(struct ring_buf *rb, void *mem_block, size_t size)
|
|||
|
||||
static int i2s_litex_initialize(const struct device *dev)
|
||||
{
|
||||
struct i2s_litex_cfg *cfg = dev->config;
|
||||
const struct i2s_litex_cfg *cfg = dev->config;
|
||||
struct i2s_litex_data *const dev_data = dev->data;
|
||||
|
||||
k_sem_init(&dev_data->rx.sem, 0, CONFIG_I2S_LITEX_RX_BLOCK_COUNT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue