From patchwork Thu May 22 09:18:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 30576 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qg0-f69.google.com (mail-qg0-f69.google.com [209.85.192.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4646020369 for ; Thu, 22 May 2014 09:19:02 +0000 (UTC) Received: by mail-qg0-f69.google.com with SMTP id f51sf6942957qge.4 for ; Thu, 22 May 2014 02:19:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=N05VUNlWuvttlcWQkKQ0FWEDO7FxUcJXN8qaidmuLy0=; b=QmtA17NjH2JCBLbD3g2TkSftZlCrIt/Jl6lmBzKjrc1HLGQaHkgPTWXCtmH2ZJTw5E iZ11yfB+O716l+bYJyzOlTU+uwtL9ETidKpPsE8AfuXolrGxmhBd+wSnkutNXjtwxjxg WFGOrg0IP5j5w3AmoVYqSPofsx1RM8f8+L/65Im9tR+ZHMmNlYREKAMOlcyfgXPpyFz4 HZTYc1C6X8n7Q3flmACwdBQdJFdGNUtn7LbF3FAGJ9BYI4TSOKnvc8U+GX//eN0RlVaH 1hKF9KDhJNyu+T+zg1oeK9KYP1zG/yveUeoKSelVGGDg1fbDEMqDl3VfipWPErUaCakj 6nrA== X-Gm-Message-State: ALoCoQlFgd6xDksthYxMo2zADb2gtAc/OBNk83502PmbZM+XnjLqZT/kKo4yEdApxyoOPtiMlmbh X-Received: by 10.236.151.114 with SMTP id a78mr7786013yhk.32.1400750342141; Thu, 22 May 2014 02:19:02 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.47.203 with SMTP id m69ls1163160qga.84.gmail; Thu, 22 May 2014 02:19:02 -0700 (PDT) X-Received: by 10.52.141.74 with SMTP id rm10mr12486700vdb.6.1400750342056; Thu, 22 May 2014 02:19:02 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id d5si2213933vea.87.2014.05.22.02.19.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 May 2014 02:19:02 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id lf12so4056668vcb.29 for ; Thu, 22 May 2014 02:19:01 -0700 (PDT) X-Received: by 10.52.227.105 with SMTP id rz9mr38316vdc.51.1400750341965; Thu, 22 May 2014 02:19:01 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp181896vcb; Thu, 22 May 2014 02:19:01 -0700 (PDT) X-Received: by 10.50.25.105 with SMTP id b9mr20461560igg.28.1400750341435; Thu, 22 May 2014 02:19:01 -0700 (PDT) Received: from mail-ig0-f176.google.com (mail-ig0-f176.google.com [209.85.213.176]) by mx.google.com with ESMTPS id um8si31509539icb.69.2014.05.22.02.19.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 May 2014 02:19:01 -0700 (PDT) Received-SPF: pass (google.com: domain of lee.jones@linaro.org designates 209.85.213.176 as permitted sender) client-ip=209.85.213.176; Received: by mail-ig0-f176.google.com with SMTP id hl10so7330874igb.9 for ; Thu, 22 May 2014 02:19:01 -0700 (PDT) X-Received: by 10.43.80.5 with SMTP id zs5mr23014478icb.72.1400750341241; Thu, 22 May 2014 02:19:01 -0700 (PDT) Received: from localhost.localdomain (host109-148-113-200.range109-148.btcentralplus.com. [109.148.113.200]) by mx.google.com with ESMTPSA id u10sm11964747igz.21.2014.05.22.02.18.59 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 May 2014 02:19:00 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Lee Jones Subject: [PATCH] mfd: max14577: Cast to architecture agnostic data type Date: Thu, 22 May 2014 10:18:31 +0100 Message-Id: <1400750311-15323-3-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1400750311-15323-1-git-send-email-lee.jones@linaro.org> References: <1400750311-15323-1-git-send-email-lee.jones@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , drivers/mfd/max14577.c:334:25: warning: cast from pointer to integer of different size max14577->dev_type = (unsigned int)of_id->data; ^ Signed-off-by: Lee Jones --- drivers/mfd/max14577.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/max14577.c b/drivers/mfd/max14577.c index 36de88d..4a5e885 100644 --- a/drivers/mfd/max14577.c +++ b/drivers/mfd/max14577.c @@ -331,7 +331,8 @@ static int max14577_i2c_probe(struct i2c_client *i2c, of_id = of_match_device(max14577_dt_match, &i2c->dev); if (of_id) - max14577->dev_type = (unsigned int)of_id->data; + max14577->dev_type = + (enum maxim_device_type)of_id->data; } else { max14577->dev_type = id->driver_data; }