From patchwork Fri Jun 19 07:32:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacek Anaszewski X-Patchwork-Id: 6643261 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 65119C0020 for ; Fri, 19 Jun 2015 07:33:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 92828205DB for ; Fri, 19 Jun 2015 07:33:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5272B2058C for ; Fri, 19 Jun 2015 07:33:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754183AbbFSHdC (ORCPT ); Fri, 19 Jun 2015 03:33:02 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:59785 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753240AbbFSHdA (ORCPT ); Fri, 19 Jun 2015 03:33:00 -0400 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NQ601NWJKYTZIA0@mailout2.samsung.com>; Fri, 19 Jun 2015 16:32:53 +0900 (KST) X-AuditID: cbfee61b-f79416d0000014c0-55-5583c5a5c1d7 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 44.A3.05312.5A5C3855; Fri, 19 Jun 2015 16:32:53 +0900 (KST) Received: from AMDC2362.DIGITAL.local ([106.120.53.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NQ600M31KYMCKA1@mmp1.samsung.com>; Fri, 19 Jun 2015 16:32:53 +0900 (KST) From: Jacek Anaszewski To: linux-leds@vger.kernel.org, linux-media@vger.kernel.org Cc: pavel@ucw.cz, cooloney@gmail.com, rpurdie@rpsys.net, sakari.ailus@iki.fi, s.nawrocki@samsung.com, Jacek Anaszewski Subject: [PATCH] leds: aat1290: Add 'static' modifier to init_mm_current_scale Date: Fri, 19 Jun 2015 09:32:44 +0200 Message-id: <1434699164-5750-1-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmplluLIzCtJLcpLzFFi42I5/e+xgO7So82hBl82m1gc3TmRyaL36nNG i61v1jFa9GzYympx99RRNovdu56yWhx+085qcWb/SjYHDo+ds+6yexz+upDFY8/8H6wefVtW MXqsWP2d3ePzJrkAtigum5TUnMyy1CJ9uwSujJ4/ygVz2CqOnV3B1MA4l7WLkZNDQsBE4sSh WywQtpjEhXvr2boYuTiEBBYxStxbcoUdwvnJKPF/ySM2kCo2AUOJny9eM4HYIgLWErMOTWcB KWIWmMwo8W7+erBRwgJ+Etd//gGzWQRUJZr+HGAEsXkF3CU6r84BinMArVOQmDPJZgIj9wJG hlWMoqkFyQXFSem5RnrFibnFpXnpesn5uZsYwYHzTHoH46oGi0OMAhyMSjy8P440hwqxJpYV V+YeYpTgYFYS4WXcCRTiTUmsrEotyo8vKs1JLT7EKM3BoiTOezLfJ1RIID2xJDU7NbUgtQgm y8TBKdXAGDwzkJvb7uiJSSudjvJWS+yzFNebaH5X1W/T4+BrF/2d51tOOn/I/vxhyd2f+9c9 v6OgV9OR0zs/6e131a93+KPt399PeWHEOjWy8JEK+4WaUq5vlVx7XKddKvn4WTVKy9WfT3NN +9ObfvZ5bQXWVaaazYXs3trPz69oFX1xheNy3UylGhUPJZbijERDLeai4kQAR6j+MRgCAAA= Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix sparse warning by adding static modifier to the function init_mm_current_scale. Signed-off-by: Jacek Anaszewski Acked-by: Sakari Ailus --- drivers/leds/leds-aat1290.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/leds/leds-aat1290.c b/drivers/leds/leds-aat1290.c index 8635404..b055882 100644 --- a/drivers/leds/leds-aat1290.c +++ b/drivers/leds/leds-aat1290.c @@ -308,7 +308,7 @@ static void aat1290_led_validate_mm_current(struct aat1290_led *led, cfg->max_brightness = b + 1; } -int init_mm_current_scale(struct aat1290_led *led, +static int init_mm_current_scale(struct aat1290_led *led, struct aat1290_led_config_data *cfg) { int max_mm_current_percent[] = { 20, 22, 25, 28, 32, 36, 40, 45, 50, 56,