drivers: gpio: pca series: dereference pointer in assignment

Properly dereference the value pointer in assignment.

```
In function 'gpio_pca_series_port_read_standard':
warning: assignment to 'gpio_port_value_t *' {aka 'unsigned int *'} \
  from 'uint32_t' {aka 'unsigned int'} makes pointer from integer   \
  without a cast [-Wint-conversion]
 1071 |                 value = sys_le32_to_cpu(input_data);
      |                       ^
```

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
This commit is contained in:
Chris Friedt 2025-05-11 13:00:47 -04:00 committed by Anas Nashif
commit 8409e425b3

View file

@ -1068,7 +1068,7 @@ static int gpio_pca_series_port_read_standard(
if (ret) {
LOG_ERR("port read error %d", ret);
} else {
value = sys_le32_to_cpu(input_data);
*value = (gpio_port_value_t)sys_le32_to_cpu(input_data);
}
k_sem_give(&data->lock);
#endif /* CONFIG_GPIO_PCA_SERIES_INTERRUPT */