[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200121134705.GA28240@SandeshPC>
Date: Tue, 21 Jan 2020 14:47:05 +0100
From: Sandesh Kenjana Ashok <sandeshkenjanaashok@...il.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Matthias Brugger <matthias.bgg@...il.com>
Cc: devel@...verdev.osuosl.org, linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: [PATCH] staging: mt7621-pinctrl: Align to fix warnings of line over
80 characters
Issue found by checkpatch.
Signed-off-by: Sandesh Kenjana Ashok <sandeshkenjanaashok@...il.com>
---
drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c b/drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c
index d0f06790d38f..df5da5fce630 100644
--- a/drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c
+++ b/drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c
@@ -159,7 +159,8 @@ static int rt2880_pmx_group_enable(struct pinctrl_dev *pctrldev,
}
static int rt2880_pmx_group_gpio_request_enable(struct pinctrl_dev *pctrldev,
- struct pinctrl_gpio_range *range,
+ struct pinctrl_gpio_range
+ *range,
unsigned int pin)
{
struct rt2880_priv *p = pinctrl_dev_get_drvdata(pctrldev);
@@ -218,10 +219,10 @@ static int rt2880_pinmux_index(struct rt2880_priv *p)
p->func_count++;
/* allocate our function and group mapping index buffers */
- f = p->func = devm_kcalloc(p->dev,
- p->func_count,
- sizeof(struct rt2880_pmx_func),
- GFP_KERNEL);
+ f = p->func;
+ p->func = devm_kcalloc(p->dev, p->func_count,
+ sizeof(struct rt2880_pmx_func), GFP_KERNEL);
+
gpio_func.groups = devm_kcalloc(p->dev, p->group_count, sizeof(int),
GFP_KERNEL);
if (!f || !gpio_func.groups)
--
2.17.1
Powered by blists - more mailing lists