mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
iio: adc: make read-only const array config static
Don't populate the read-only const array config on the stack at run time, instead make it static. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
This commit is contained in:
parent
091e7a67a9
commit
1c286917a2
|
|
@ -279,7 +279,7 @@ static int pm886_gpadc_read_raw(struct iio_dev *iio, struct iio_chan_spec const
|
|||
|
||||
static int pm886_gpadc_hw_enable(struct regmap *map)
|
||||
{
|
||||
const u8 config[] = {
|
||||
static const u8 config[] = {
|
||||
PM886_GPADC_CONFIG1_EN_ALL,
|
||||
PM886_GPADC_CONFIG2_EN_ALL,
|
||||
PM886_GPADC_GND_DET2_EN,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user