Message ID | 20210909213118.1087083-4-robh@kernel.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:8629:0:0:0:0:0 with SMTP id e38csp701651jai; Thu, 9 Sep 2021 14:31:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsW6ubxgVv8HbKD8q9QZqVvqal2+oWzqehmYUAVN12IXtLHT9SHuOzN2jis3oRux0kd67P X-Received: by 2002:a17:906:abcd:: with SMTP id kq13mr5750367ejb.195.1631223091766; Thu, 09 Sep 2021 14:31:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631223091; cv=none; d=google.com; s=arc-20160816; b=JKcM5u6Wt+9Mk2K3ww1kzipGSROp8/VnEBsvuN/RhvhtQJdHj51ziqa9ZQWapAneqK 09+v6IA+tOYSt4LbrKnSK0F1tofVxsuzyR2cwam9X43Wj51SE7RDadAMnfzjo8QhNyLX xQ+i72V4GWdhLWo62TQGNf+EUELKBjlutq3eZ9ooM0O2MVQKrWupGwh/SeutoF0zPVTc +XLmWzzqbhHFDBY40OMaPAKeyOmmcfcj2fJuTiCszifvmZo+8OYzUWzpaQlg6YI2G7FT ZwFFs93M11t61LFmNc1WrCW5WBx+ytQPU9VU1mKOkOA6Ma6wzrgZXPiGae/CLGTSIIlm y6ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=9BBmBTBD/+iBwMGuU2DXqDGCFrO8u6bMOR8Z4+lnQAM=; b=R4ySj0U85gqLEysfU7frk8wRaaXYwHv+YMAjSH3nlZs9W5KTNGt8cOOMRRZiPosaH7 xOaufl3tPqBOn/Naxq0BaeHP4ggNMF4UllBW201utCT2ezQ4B6Jl+/JsbrKcuFIuhos9 WFHLNn3E48AUoQLUro/+OGgVKVZVvvdPu6yerc28dG0LjK5N/+HOp8nwZtAcrgtMvp8L G+B8zhg71aBjnyDfxC0JdZf5OCU//d/uDp8N1qUKufIa6Vx0yoBvvNlNAHiHhiwFXx7k 7uQPIwX5oxCU/7hsRl6Z8sfuZIbmMg7lOXOvleyOH7Y8R5MofePhe3cryxlRxddnOIRn LpEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: <linux-leds-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j4si3214255ejo.225.2021.09.09.14.31.31 for <patch@linaro.org>; Thu, 09 Sep 2021 14:31:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347667AbhIIVcj (ORCPT <rfc822;patch@linaro.org>); Thu, 9 Sep 2021 17:32:39 -0400 Received: from mail-oi1-f174.google.com ([209.85.167.174]:41612 "EHLO mail-oi1-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347159AbhIIVce (ORCPT <rfc822; linux-leds@vger.kernel.org>); Thu, 9 Sep 2021 17:32:34 -0400 Received: by mail-oi1-f174.google.com with SMTP id 6so4448062oiy.8; Thu, 09 Sep 2021 14:31:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9BBmBTBD/+iBwMGuU2DXqDGCFrO8u6bMOR8Z4+lnQAM=; b=Lk08Ecp/PBhqiZXF9tMM808395GP9Ifr6SksybB+hO78mmOeSmmViAEG51u9N/DqxG +rueHCLTZgTpH+tHZe2+S9mWcIYNjCviMeba4JquvjoDRoVpQEQcznzbaV6Ucr3G/Uv1 HOAUTpPEfcW2cbKAfEOm3cVpUwqPWROGVxIQ85mi1TE+cGO26cvJorjOW9RMImIUbebX E4IKfCsrsyrX0a6g9Zp97VrzxZV644hOkXj82719u5togdswqDYxDdDEFtNDznVuyaTx Hk4QBuvg4NB8X7Gw6gzWX9/YuShJBm/9AiTPhnpLWAXDnK857TXiXFCAZqVqcpDdkUKl XR5w== X-Gm-Message-State: AOAM531j4MVQsMLjGYVAuRdFA2f2nFdFovVc16FE3KtstFAF4CWfVhw+ gSYZOs+7Ft4e8Bw7CcXxbMxehFHmMA== X-Received: by 2002:aca:1109:: with SMTP id 9mr1472913oir.109.1631223084362; Thu, 09 Sep 2021 14:31:24 -0700 (PDT) Received: from xps15.herring.priv (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.googlemail.com with ESMTPSA id m24sm694929oie.50.2021.09.09.14.31.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Sep 2021 14:31:23 -0700 (PDT) From: Rob Herring <robh@kernel.org> To: Linus Walleij <linus.walleij@linaro.org>, Stephen Boyd <sboyd@kernel.org>, Pavel Machek <pavel@ucw.cz> Cc: Liviu Dudau <liviu.dudau@arm.com>, Sudeep Holla <sudeep.holla@arm.com>, Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org Subject: [PATCH 3/8] leds: syscon: Support 'reg' in addition to 'offset' for register address Date: Thu, 9 Sep 2021 16:31:13 -0500 Message-Id: <20210909213118.1087083-4-robh@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210909213118.1087083-1-robh@kernel.org> References: <20210909213118.1087083-1-robh@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-leds.vger.kernel.org> X-Mailing-List: linux-leds@vger.kernel.org |
Series |
Arm boards syscon 'unit_address_format' clean-ups
|
expand
|
diff --git a/drivers/leds/leds-syscon.c b/drivers/leds/leds-syscon.c index 7eddb8ecb44e..44e79cdf5c39 100644 --- a/drivers/leds/leds-syscon.c +++ b/drivers/leds/leds-syscon.c @@ -81,7 +81,8 @@ static int syscon_led_probe(struct platform_device *pdev) sled->map = map; - if (of_property_read_u32(np, "offset", &sled->offset)) + if (of_property_read_u32(np, "reg", &sled->offset) && + of_property_read_u32(np, "offset", &sled->offset)) return -EINVAL; if (of_property_read_u32(np, "mask", &sled->mask)) return -EINVAL;
The register-bit-led binding now also supports 'reg' in addition to 'offset' for the register address. Add support to the driver to get the address from 'reg'. Cc: Linus Walleij <linus.walleij@linaro.org> Cc: Pavel Machek <pavel@ucw.cz> Cc: linux-leds@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org> --- drivers/leds/leds-syscon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.30.2