Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752448AbbKYKWi (ORCPT ); Wed, 25 Nov 2015 05:22:38 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:50160 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751291AbbKYKWe (ORCPT ); Wed, 25 Nov 2015 05:22:34 -0500 X-AuditID: cbfee691-f79bf6d000006c90-fa-56558be7cd41 From: Ingi Kim To: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, sameo@linux.intel.com, lee.jones@linaro.org, rpurdie@rpsys.net, j.anaszewski@samsung.com Cc: inki.dae@samsung.com, sw0312.kim@samsung.com, beomho.seo@samsung.com, andi.shyti@samsung.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, Ingi Kim Subject: [PATCH v6 0/2] Add RT5033 Flash LED driver Date: Wed, 25 Nov 2015 19:22:26 +0900 Message-id: <1448446948-13729-1-git-send-email-ingi2.kim@samsung.com> X-Mailer: git-send-email 2.0.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupgkeLIzCtJLcpLzFFi42JZI2JSpPu8OzTMoPepkcX2I89YLU5/2sZu Mf/IOVaL/jcLWS3OvVrJaLHj5hc2i0n3J7BY9F59zmhx/+tRRovLu+awWWx9s47RYun1i0wW E6avZbFo3XuE3WL3rqdAU7pZLWZMfsnmIOixZt4aRo/Lfb1MHiuXf2Hz2LSqk83jzrU9bB7z TgZ67Jn/g9Wjb8sqRo/Pm+QCOKO4bFJSczLLUov07RK4Mk721BZ8EKxom3KDuYHxEW8XIyeH hICJxO/zW9khbDGJC/fWs3UxcnEICaxglNix6wAzTNG/22tZIRKzGCXufH7LDOFMZZKYf2c2 I0gVm4CaxI0VC5lAEiIClxklNp0/zwaSYBa4xyjxbEMWiC0sYCzxvuk4WJxFQFVi3f0zLCA2 r4CrxL2+Q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GhgnxpiRWVqUW 5ccXleakFh9iNAU6YCKzlGhyPjCB5JXEGxqbmBlZGpkbWhgZmyuJ817Y7xcmJJCeWJKanZpa kFoE08fEwSnVwBhzSLHStWfX1y2fZpdV66oKeazaH/kk0GyfxQsudt3uHTo8t7V/N16Lrt0s GhlR1nTpmI/Lw6nhy9a535Bd1nIpdb7ICblAx4l3OQX/LuSteyBgb9a87B/36evLwy75WB3w PeN70qPwt5W6akgAY3WWc9X/86+3duuFKGqsOlh8UINVzO5TvRJLcUaioRZzUXEiAHJRgLvo AgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2471 Lines: 67 This is a sixth version of the patch set to support RT5033 Flash Led. It is based on RFC [1] from Jacek's patch set. Changes since v6: - Make functions to convert from LED config data to register value - Add variables to save LED config data in rt5033_led struct - Rename some functions suitably - Change to set register of flash brightness / timeout when it was changed. Changes since v5: - Rebase on Jacek's devel branch git://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds.git - Remove work queue from driver. - Change brightness_set_sync ops to brightness_set_blocking ops. - Remove "iout_torch_max" and "iout_flash_max" values in rt5033_led struct. - Add missed case for distinguishing between setting brightness. for iout_joint case and for individual LEDs. - Add missed mutex_lock. - Remove guard to check dev->of_node. - Change type of value to const __be32 to get return value of of_find_property. Changes since v4: - Use of_node_put() when DT parse miss - Move struct(rt5033_led) from include/linux/mfd/rt5033.h to local driver/leds/leds-rt5033.c - Remove MODULE_DEVICE_TABLE - Add interface to handle two LEDs. Changes since v3: - Use mutex and work queue - Split brightness set func (sync / async) - Add flash API (flash_brightness_set) - Move struct(rt5033_led_config_data) to local area - Code clean Changes since v2: - Split MFC code from rt5033 flash led patch - Fix typo error - Change naming of mfd register back again - Fix compile error Original cover letter: This patch supports flash led of RT5033 PMIC. [1] https://lkml.org/lkml/2015/8/20/426 Ingi Kim (2): leds: rt5033: Add DT binding for RT5033 leds: rt5033: Add RT5033 Flash led device driver .../devicetree/bindings/leds/leds-rt5033.txt | 46 ++ drivers/leds/Kconfig | 8 + drivers/leds/Makefile | 1 + drivers/leds/leds-rt5033.c | 541 +++++++++++++++++++++ include/linux/mfd/rt5033-private.h | 51 ++ 5 files changed, 647 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-rt5033.txt create mode 100644 drivers/leds/leds-rt5033.c -- 2.0.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/