From patchwork Fri Jul 11 14:04:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacek Anaszewski X-Patchwork-Id: 4534761 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 251729F3E3 for ; Fri, 11 Jul 2014 14:12:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5B5A32017E for ; Fri, 11 Jul 2014 14:12:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F016F20158 for ; Fri, 11 Jul 2014 14:12:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754590AbaGKOL7 (ORCPT ); Fri, 11 Jul 2014 10:11:59 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:49142 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754071AbaGKOEf (ORCPT ); Fri, 11 Jul 2014 10:04:35 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N8J00D9DWFLIO90@mailout2.samsung.com>; Fri, 11 Jul 2014 23:04:33 +0900 (KST) X-AuditID: cbfee61a-f79e46d00000134f-71-53bfeef1133e Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 7C.77.04943.1FEEFB35; Fri, 11 Jul 2014 23:04:33 +0900 (KST) Received: from AMDC2362.DIGITAL.local ([106.120.53.23]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N8J00JI5WF7VM80@mmp2.samsung.com>; Fri, 11 Jul 2014 23:04:33 +0900 (KST) From: Jacek Anaszewski To: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kyungmin.park@samsung.com, b.zolnierkie@samsung.com, Jacek Anaszewski , Bryan Wu , Richard Purdie Subject: [PATCH/RFC v4 01/21] leds: make brightness type consistent across whole subsystem Date: Fri, 11 Jul 2014 16:04:04 +0200 Message-id: <1405087464-13762-2-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1405087464-13762-1-git-send-email-j.anaszewski@samsung.com> References: <1405087464-13762-1-git-send-email-j.anaszewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprOLMWRmVeSWpSXmKPExsVy+t9jQd2P7/YHGxzdbG6xccZ6VoujOycy Wcw/co7Vovfqc0aLs01v2C0u75rDZrH1zTpGi54NW1ktdu96yurA6bFz1l12jz3zf7B69G1Z xejxeZNcAEsUl01Kak5mWWqRvl0CV8a7GwfYCmaxV6w7uZW5gfEDaxcjB4eEgInEtJ96XYyc QKaYxIV769lAbCGB6YwSC654djFyAdntTBLLNu1iB0mwCRhK/HzxmgnEFhEol+h5/4wNpIhZ YDWjxJ2tX1lBEsICMRLrn55jBrFZBFQl7j+4CDaVV8BD4tePbewQixUk5kyyAQlzCnhKHOy/ CbXYQ+Lh2hPsExh5FzAyrGIUTS1ILihOSs811CtOzC0uzUvXS87P3cQIDq5nUjsYVzZYHGIU 4GBU4uFVWL8vWIg1say4MvcQowQHs5II79U3+4OFeFMSK6tSi/Lji0pzUosPMUpzsCiJ8x5o tQ4UEkhPLEnNTk0tSC2CyTJxcEo1MBatWdcdxLZN+OdqQaNFj1hevShV2MMvrGRxby17YMil 07P/Mm+6ZFJQyqQ042/YlQhXU7E9JvbOKr2y1eF7Ty1kv7je6txJo6/t2uvaS02bXX4cEXEI tt9c9EXTO6aMZ8bkdsnG3V3CrZufvzHya2qsuxp+fXGNe2L0Al+pCUZxa0Ivvf67XYmlOCPR UIu5qDgRAKZXCG0qAgAA 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.5 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 Documentations states that brightness units type is enum led_brightness and this is the type used by the led API functions. Adjust the type of brightness variables in the struct led_classdev accordingly. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park Cc: Bryan Wu Cc: Richard Purdie --- include/linux/leds.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/leds.h b/include/linux/leds.h index e436864..995f933 100644 --- a/include/linux/leds.h +++ b/include/linux/leds.h @@ -31,8 +31,8 @@ enum led_brightness { struct led_classdev { const char *name; - int brightness; - int max_brightness; + enum led_brightness brightness; + enum led_brightness max_brightness; int flags; /* Lower 16 bits reflect status */