From d7089f4c43bd76082459e6995652b578ce2d10f4 Mon Sep 17 00:00:00 2001 From: dmitriy Date: Sun, 13 May 2018 21:10:17 +0300 Subject: [PATCH] [rda_dsp_aud] fix gpio files permissions for prevent warn on boot --- sound/soc/rda/rda_dsp_aud.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sound/soc/rda/rda_dsp_aud.c b/sound/soc/rda/rda_dsp_aud.c index 27578fb4233b5..ccff3408dcf4a 100644 --- a/sound/soc/rda/rda_dsp_aud.c +++ b/sound/soc/rda/rda_dsp_aud.c @@ -223,17 +223,17 @@ static ssize_t rdabp_gpio_enable_irq_store(struct device *dev, return count; } -static DEVICE_ATTR(gpio_open, 0777, +static DEVICE_ATTR(gpio_open, 0333, NULL, rdabp_gpio_open_store); -static DEVICE_ATTR(gpio_close,0777, +static DEVICE_ATTR(gpio_close,0333, NULL, rdabp_gpio_close_store); -static DEVICE_ATTR(gpio_set_io, 0777, +static DEVICE_ATTR(gpio_set_io, 0333, NULL,rdabp_gpio_set_io_store); -static DEVICE_ATTR(gpio_get_value, 0777, +static DEVICE_ATTR(gpio_get_value, 0333, NULL,rdabp_gpio_get_value_store); -static DEVICE_ATTR(gpio_set_value, 0777, +static DEVICE_ATTR(gpio_set_value, 0333, NULL,rdabp_gpio_set_value_store); -static DEVICE_ATTR(gpio_enable_irq, 0777, +static DEVICE_ATTR(gpio_enable_irq, 0333, NULL,rdabp_gpio_enable_irq_store);