mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
iio: light: vcnl4000: make read-only const array regulator_names static
Don't populate the read-only const array regulator_names on the stack at run time, instead make it static const char * const 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
bdba14f612
commit
091e7a67a9
|
|
@ -1922,7 +1922,7 @@ static void vcnl4000_cleanup(void *data)
|
|||
|
||||
static int vcnl4000_probe(struct i2c_client *client)
|
||||
{
|
||||
const char * const regulator_names[] = { "vdd", "vio", "vled" };
|
||||
static const char * const regulator_names[] = { "vdd", "vio", "vled" };
|
||||
struct device *dev = &client->dev;
|
||||
struct vcnl4000_data *data;
|
||||
struct iio_dev *indio_dev;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user