From patchwork Thu Nov 30 03:05:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 120067 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp153557qgn; Wed, 29 Nov 2017 19:05:53 -0800 (PST) X-Google-Smtp-Source: AGs4zMYCwMIfJDONeHh35RPEQOsst3QLUp4szIQs1yYmJLrLZiXN1wzGiMsGSaB1SCO/p+G743le X-Received: by 10.101.78.203 with SMTP id w11mr967839pgq.439.1512011153168; Wed, 29 Nov 2017 19:05:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512011153; cv=none; d=google.com; s=arc-20160816; b=MBFA9pIjKu7HsIsEhThDNm9v6c33z+l/uM6B9OLtQNn1UJ3sE/BEDzoGdND05od7UI s5EAPej9gGjFvIxzF1JpTwGGwR7FR/uWFpU1rg8CTQ6t9l0OVD4Yac6ALBxAhLU87mfY 5EjqIw0f7ROyBY14yBL1dF/k70/a6mkIrsB69Mlml5qAIvGbWHrYdAx8PP6mZ3Kru4y4 0fUUx+I3InGoDlYFNM7t+xRrpj/dMAo6P64Gb2iijo5k4g3WvZ+2RxTTibFmdvQhCr51 wZ3iISiemJw3rSh4f1HGi9y24L0msgBKrp+oUfTuVZWtgNq6ow3DxN5C+gZtjAceuY8a ALCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=lxLz/BbCwd1RxyIt7ezxNm70ix6QLpmLPnwc/NpPgtM=; b=EJB8V3FG3c+UH95cZc6OpdiBaGAk9pydo0k2FfJxXb9RzM1/vUHjti1ge6gLuTouWQ DGCyvIZ8CbqwE19wBkH+mvIbgr9MYMm/iCqB1/nxCsD3LFM1BUofkrDr/wqGOeKKD6h/ J3123uCyyIlNXms6GThf5Wuio38RP65AQ8nJeQoGr18HFYY8n61qYU3tIJw19oFfBN9X ekxQf7yzeU1NRubDbrYsmWzMqb2mgmrgfRLGuVIa4y9MgqDd8boyZ2ytZJE11/w5Q6zV yJmw82ntMX1BkwbgzybRsLZSqgF86kJi/ecBVhXlMRIJYP/r0Djng/WxChSipc5nJmWR F9jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F/t6bj7T; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q64si785324pfi.330.2017.11.29.19.05.53 for ; Wed, 29 Nov 2017 19:05:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F/t6bj7T; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752418AbdK3DFv (ORCPT ); Wed, 29 Nov 2017 22:05:51 -0500 Received: from mail-pl0-f65.google.com ([209.85.160.65]:41481 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753356AbdK3DFt (ORCPT ); Wed, 29 Nov 2017 22:05:49 -0500 Received: by mail-pl0-f65.google.com with SMTP id g2so3388025pli.8 for ; Wed, 29 Nov 2017 19:05:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to; bh=lxLz/BbCwd1RxyIt7ezxNm70ix6QLpmLPnwc/NpPgtM=; b=F/t6bj7TtMH5HTuWbimD4Qx5VeTEIsBFksT2vJj0KxrRGC+wD/XPft2YM3K1A+hfTl sCRdE2aPRfhYzRiIaxl3LTUS+t0/ghc8jgM0yybaN6idUC63mjT8zWo4Uv6XtxMqHNFk t4g3N6R6yhI/9YChgZ79e+RzOy3Oae9MfI2HA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to; bh=lxLz/BbCwd1RxyIt7ezxNm70ix6QLpmLPnwc/NpPgtM=; b=nwphHRRGATCBLrFCw1CPQ46U1GBEbJnQ8Zboxu2+ghHSC8v3N0sPfu+qEH3EM5eL/u U9HqA6d0qrdAd5uysoLMGIC/6AlXlYh917gP4IvWfnrmMa9zoq1Neyw5K+ff1GsvuTp6 BnP66MLCZ5yUeR5jA9qL/CxY2GadxQEdeUzlxe0wXWviHvmhOpiWHwM8fbEdFXWHhkM2 WKUh+UnllA7ovg5G26RUhYlZacysWerNftVLv1mCdPjJEgzG0O4vsi2+G1OYXOxovnLu XHuIE1nunAwANA3fkGT1nI43VGDZLYMweHbtiAVJgH3BQSscwU96gDe2Pq3Mue5c6kvf Lo6A== X-Gm-Message-State: AJaThX7qiw3GYm1Q+/DlIAPSBfhBjLtpPHX7aSlkQS/lOU6KhanVDERB 2MPEbmVN6tJX+yw61Ln4AwVWWQ== X-Received: by 10.84.140.1 with SMTP id 1mr1072298pls.114.1512011148650; Wed, 29 Nov 2017 19:05:48 -0800 (PST) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id e87sm5860988pfd.165.2017.11.29.19.05.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Nov 2017 19:05:48 -0800 (PST) From: Bjorn Andersson To: Richard Purdie , Jacek Anaszewski , Pavel Machek Cc: linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Walleij , Lee Jones , Stephen Rothwell , Linux-Next Mailing List Subject: [PATCH] leds: pm8058: Make ledtype pointer sized type Date: Wed, 29 Nov 2017 19:05:43 -0800 Message-Id: <20171130030543.1071-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171130113516.42c8bde2@canb.auug.org.au> Sender: linux-leds-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org The pointer returned by of_device_get_match_data() doesn't have the same size as u32 on 64-bit architectures, causing issues when compile testing the driver on such platform. Make ledtype unsigned long instead, to solve this problem. Fixes: 7f866986e705 ("leds: add PM8058 LEDs driver") Cc: Linus Walleij Signed-off-by: Bjorn Andersson --- drivers/leds/leds-pm8058.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.15.0 Reviewed-by: Linus Walleij Acked-by: Jacek Anaszewski diff --git a/drivers/leds/leds-pm8058.c b/drivers/leds/leds-pm8058.c index a52674327857..cc2afe81720d 100644 --- a/drivers/leds/leds-pm8058.c +++ b/drivers/leds/leds-pm8058.c @@ -29,7 +29,7 @@ struct pm8058_led { struct regmap *map; u32 reg; - u32 ledtype; + unsigned long ledtype; struct led_classdev cdev; }; @@ -106,7 +106,7 @@ static int pm8058_led_probe(struct platform_device *pdev) if (!led) return -ENOMEM; - led->ledtype = (u32)of_device_get_match_data(&pdev->dev); + led->ledtype = (unsigned long)of_device_get_match_data(&pdev->dev); map = dev_get_regmap(pdev->dev.parent, NULL); if (!map) {