Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932933AbcJZOpX (ORCPT ); Wed, 26 Oct 2016 10:45:23 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:31261 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932464AbcJZOpV (ORCPT ); Wed, 26 Oct 2016 10:45:21 -0400 X-AuditID: cbfec7f4-f791c6d000006eac-b7-5810c17be6e6 Subject: Re: [PATCH] led: pca9532: Use default trigger value from platform data To: Felix Brack , riku.voipio@iki.fi, linux-leds@vger.kernel.org Cc: "rpurdie@rpsys.net" , linux-kernel@vger.kernel.org From: Jacek Anaszewski Message-id: Date: Wed, 26 Oct 2016 16:45:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-version: 1.0 In-reply-to: <2ba1ca4c-23c5-fb0e-10ce-4e25edcd197f@ltec.ch> Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrPIsWRmVeSWpSXmKPExsWy7djP87rVBwUiDCZ/s7GY/XA9u8XlXXPY LLa+WcdocXLDJTaL3buesjqwehz+upDFo3nzVGaPPfN/sHp83iQXwBLFZZOSmpNZllqkb5fA lXH5plhBK3vF9j/v2BoYr7F2MXJwSAiYSHR94ehi5AQyxSQu3FvP1sXIxSEksJRRYsX6F0wQ zmdGibP3fjFCVJlIPLvzlQUisYxR4uGJ9awQzjNGiT3HlrKBVAkLBEq8nr8JrENEwEdi3dvD YDazgKfE7G0trCA2m4ChxM8Xr5lAbF4BO4mtK5aygJzEIqAqsXRhPogpKhAhsftuKkSFoMSP yfdYQGxOAWuJh+saoSZaSTz718oKYctLbF7zlhnkHAmBfnaJ1vm/mSC+lJXYdIAZwnSRmLyq DOIVYYlXx7ewQ9gyEp0dB5kgWiczSlw8dpMVwlnNKLGxs5MFospaouH/Lxa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nVwJg6 2XzKd62JV6drdb9W09H1/1b/MoRnD0ty01Xbwi3zT35P0BJhaT66wMNBovLI9osO/jNWCR3Z Zbz68K+3C174Kn6fxcElIfiyXf9k5fQjl/b/nVF8dnaq4GvZLIeT6R3HXT7N73j06EGXqGW9 D9vJLy1K9q9ms7z0rnxoarUmuG+fQO6OGbVKLMUZiYZazEXFiQBImUf7tAIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20161026144515eucas1p29863318d229fa099516132a33862dab5 X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 X-Local-Sender: =?UTF-8?B?SmFjZWsgQW5hc3pld3NraRtTUlBPTC1TeXN0ZW0gRlcgIChN?= =?UTF-8?B?Qikb7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?UTF-8?B?SmFjZWsgQW5hc3pld3NraRtTUlBPTC1TeXN0ZW0gRlcgIChN?= =?UTF-8?B?QikbU2Ftc3VuZyBFbGVjdHJvbmljcxtTZW5pb3IgU29mdHdhcmUgRW5naW5l?= =?UTF-8?B?ZXI=?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjc1MjY=?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20161026140813eucas1p2bd4e4dc825badc0538f8d074056444c2 X-RootMTR: 20161026140813eucas1p2bd4e4dc825badc0538f8d074056444c2 References: <2ba1ca4c-23c5-fb0e-10ce-4e25edcd197f@ltec.ch> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 869 Lines: 32 Hi Felix, Thanks for the patch. Applied. On 10/26/2016 04:08 PM, Felix Brack wrote: > The value for a led's default_trigger should come from platform data > instead of data (which is always 0). > > Signed-off-by: Felix Brack > --- > > diff --git a/drivers/leds/leds-pca9532.c b/drivers/leds/leds-pca9532.c > index 09a7cffb..06e6310 100644 > --- a/drivers/leds/leds-pca9532.c > +++ b/drivers/leds/leds-pca9532.c > @@ -369,7 +369,7 @@ static int pca9532_configure(struct i2c_client *client, > led->state = pled->state; > led->name = pled->name; > led->ldev.name = led->name; > - led->ldev.default_trigger = led->default_trigger; > + led->ldev.default_trigger = pled->default_trigger; > led->ldev.brightness = LED_OFF; > led->ldev.brightness_set_blocking = > pca9532_set_brightness; > > > -- Best regards, Jacek Anaszewski