From patchwork Mon Sep 23 12:50:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 2927961 Return-Path: X-Original-To: patchwork-linux-omap@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 916C19F3C4 for ; Mon, 23 Sep 2013 12:50:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9DDB020529 for ; Mon, 23 Sep 2013 12:50:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A1978204C7 for ; Mon, 23 Sep 2013 12:50:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753616Ab3IWMuR (ORCPT ); Mon, 23 Sep 2013 08:50:17 -0400 Received: from mail-ee0-f51.google.com ([74.125.83.51]:64402 "EHLO mail-ee0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753453Ab3IWMuQ (ORCPT ); Mon, 23 Sep 2013 08:50:16 -0400 Received: by mail-ee0-f51.google.com with SMTP id c1so1695259eek.38 for ; Mon, 23 Sep 2013 05:50:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; bh=TPtsw715VhUaZW8rpi5zmDgKVQQ/Yb8d8xTenoU8Nss=; b=JIe2oTEXpdkEyQPIdRL1HOW43XftNPdYsAG9IO7Bb/xhuFb3FzgLda1GTnXkLf2pC2 LsNKYpTDYUXnn+Fjr9AT5MBNAtjZHRfwwOL1Y6axXB9X2AUw4ivB1EaQjN7NXc6eAtnx yS1RsA6bjws6zk4oI5SaGHCcqhQXVLU8jD/reZo3qqFk2lhvdmwkwDAAsNQXH65gUFJE 4GXkLm0OWoesqU/5vDBLYUKAa2GpvUe6439HCRTJGlP9XLSqHIk0IOBCx1kn3ObaOma0 OjzRsKLdIykiX5im2MhWlgf05vwZwcPPD0P9K0RHv0Cz0+ZZ/+9WPUv8VAS4nvcljM/0 sZjg== X-Received: by 10.15.108.202 with SMTP id cd50mr2838835eeb.68.1379940614449; Mon, 23 Sep 2013 05:50:14 -0700 (PDT) Received: from pali-elitebook.localnet ([2001:718:1e03:a01::1ca]) by mx.google.com with ESMTPSA id bn13sm41827115eeb.11.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 23 Sep 2013 05:50:13 -0700 (PDT) From: Pali =?utf-8?q?Roh=C3=A1r?= To: Tony Lindgren Subject: [PATCH v2] RX-51: Add missing max_current to rx51_lp5523_led_config Date: Mon, 23 Sep 2013 14:50:12 +0200 User-Agent: KMail/1.13.7 (Linux/3.11.0-1+synaptics-generic; KDE/4.11.1; x86_64; ; ) Cc: Russell King , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, joerg@openmoko.org References: <1379541145-25934-1-git-send-email-pali.rohar@gmail.com> <20130919212922.GA27501@atomide.com> <201309200020.58671@pali> In-Reply-To: <201309200020.58671@pali> MIME-Version: 1.0 Message-Id: <201309231450.12171@pali> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-9.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, T_TVD_MIME_EPI, 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 Hi Tony, here is new version (v2) of patch which adding max_current values to rx51 board data. According to joerg safe value for max_current is 100 (10 mA). RX-51: Add missing max_current to rx51_lp5523_led_config File drivers/leds/leds-lp55xx-common.c refuse to change led_current sysfs attribute if value is higher than max_current specified in board file. By default global C variables are zero, so changing always failed. This patch adding missing max_current and setting it to max safe value 100 (10 mA). Signed-off-by: Pali Rohár Signed-off-by: Joerg Reisenweber --- arch/arm/mach-omap2/board-rx51-peripherals.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index c3270c0..f6fe388 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c @@ -167,38 +167,47 @@ static struct lp55xx_led_config rx51_lp5523_led_config[] = { .name = "lp5523:kb1", .chan_nr = 0, .led_current = 50, + .max_current = 100, }, { .name = "lp5523:kb2", .chan_nr = 1, .led_current = 50, + .max_current = 100, }, { .name = "lp5523:kb3", .chan_nr = 2, .led_current = 50, + .max_current = 100, }, { .name = "lp5523:kb4", .chan_nr = 3, .led_current = 50, + .max_current = 100, }, { .name = "lp5523:b", .chan_nr = 4, .led_current = 50, + .max_current = 100, }, { .name = "lp5523:g", .chan_nr = 5, .led_current = 50, + .max_current = 100, }, { .name = "lp5523:r", .chan_nr = 6, .led_current = 50, + .max_current = 100, }, { .name = "lp5523:kb5", .chan_nr = 7, .led_current = 50, + .max_current = 100, }, { .name = "lp5523:kb6", .chan_nr = 8, .led_current = 50, + .max_current = 100, } };