From patchwork Fri Nov 28 09:18:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacek Anaszewski X-Patchwork-Id: 5402161 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4123DBEEA8 for ; Fri, 28 Nov 2014 09:23:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 75B9D2010B for ; Fri, 28 Nov 2014 09:23:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EB1752010C for ; Fri, 28 Nov 2014 09:23:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751804AbaK1JU3 (ORCPT ); Fri, 28 Nov 2014 04:20:29 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:44621 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751663AbaK1JUZ (ORCPT ); Fri, 28 Nov 2014 04:20:25 -0500 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NFQ00300SLZL490@mailout3.samsung.com>; Fri, 28 Nov 2014 18:20:23 +0900 (KST) X-AuditID: cbfee61a-f79c06d000004e71-bc-54783e578a0d Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 60.D0.20081.75E38745; Fri, 28 Nov 2014 18:20:23 +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 <0NFQ00JKNSI8LB60@mmp2.samsung.com>; Fri, 28 Nov 2014 18:20:23 +0900 (KST) From: Jacek Anaszewski To: linux-leds@vger.kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kyungmin.park@samsung.com, b.zolnierkie@samsung.com, pavel@ucw.cz, cooloney@gmail.com, rpurdie@rpsys.net, sakari.ailus@iki.fi, s.nawrocki@samsung.com, Jacek Anaszewski , Andrzej Hajda , Lee Jones , SangYoung Son , Samuel Ortiz Subject: [PATCH/RFC v8 09/14] mfd: max77693: adjust max77693_led_platform_data Date: Fri, 28 Nov 2014 10:18:01 +0100 Message-id: <1417166286-27685-10-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1417166286-27685-1-git-send-email-j.anaszewski@samsung.com> References: <1417166286-27685-1-git-send-email-j.anaszewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNLMWRmVeSWpSXmKPExsVy+t9jQd1wu4oQg+Vn9CxurTvHarFxxnpW i6M7JzJZfLz3j9Wi9+pzRouzTW/YLe5/PcpocXnXHDaLrW/WMVr0bNjKanH31FE2i927nrJa HH7TzmpxZv9KNovT3awO/B47Z91l9zj8dSGLx51re9g85p0M9Ngz/werR9+WVYwezz6+Y/ZY sfo7u8fnTXIBnFFcNimpOZllqUX6dglcGbeuL2MqOMNR0fNrKlMD4wT2LkZODgkBE4n7zz6z QdhiEhfurQeyuTiEBKYzSjx6fYIdwmlnkniz4ikrSBWbgKHEzxevmboYOThEBKIlLh2rB6lh FnjEJHFt2koWkBphAT+JA8c72UBqWARUJS7s0QcJ8wp4Slxr6wZrlRBQkJgzyQYkzAkUnvt5 LQtIWEjAQ2LRq5QJjLwLGBlWMYqmFiQXFCel5xrqFSfmFpfmpesl5+duYgQH8TOpHYwrGywO MQpwMCrx8P74Vx4ixJpYVlyZe4hRgoNZSYT31FegEG9KYmVValF+fFFpTmrxIUZpDhYlcd4b N3NDhATSE0tSs1NTC1KLYLJMHJxSDYzl/zcF6LKv6arfyHOzNsQzcW3xz9S4JxOae+OcRFxX xEn6b7j18sUJI5mjml9812zUy9L7KOWdlHNLvsbH1GPi2U3NG3KnXrIT2Lvb0vbkya3d02+V W8+43n30wzM3CZs1c1vCIoQfvF45e9YsLvfMTcvNXx9WP5LVWnk3LUdU7VvJErvOdQeUWIoz Eg21mIuKEwE/HJwkXgIAAA== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 Add "label" array for Device Tree strings with the name of a LED device and make flash_timeout a two element array, for caching the sub-led related flash timeout. Signed-off-by: Jacek Anaszewski Signed-off-by: Andrzej Hajda Acked-by: Kyungmin Park Cc: Lee Jones Cc: SangYoung Son Cc: Samuel Ortiz Acked-by: Lee Jones --- include/linux/mfd/max77693.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/mfd/max77693.h b/include/linux/mfd/max77693.h index f0b6585..30fa19ea 100644 --- a/include/linux/mfd/max77693.h +++ b/include/linux/mfd/max77693.h @@ -88,14 +88,15 @@ enum max77693_led_boost_mode { }; struct max77693_led_platform_data { + const char *label[2]; u32 fleds[2]; u32 iout_torch[2]; u32 iout_flash[2]; u32 trigger[2]; u32 trigger_type[2]; + u32 flash_timeout[2]; u32 num_leds; u32 boost_mode; - u32 flash_timeout; u32 boost_vout; u32 low_vsys; };