Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3033229rwb; Mon, 15 Aug 2022 16:32:44 -0700 (PDT) X-Google-Smtp-Source: AA6agR4nYeADXYTvlDBDNg17k10pXLVoBXmhhd7z55josbKvlz2fA6n4+n+cO7sytLdGZGZAp9rE X-Received: by 2002:a17:907:20d1:b0:731:5169:106b with SMTP id qq17-20020a17090720d100b007315169106bmr11947657ejb.667.1660606364201; Mon, 15 Aug 2022 16:32:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660606364; cv=none; d=google.com; s=arc-20160816; b=Plgm8FLS9Gw0WNOgryXpLZfI2USgA4fw02WcwwfZYhSfljA4Ewy6e5zkW5e7TZdxJq wtwnICLQVztW28vK4SfBcYJrtQ9AGwJIA9d3oIHSbiCLNr2o+bzCWl2BAfcJwI3waznB HIdyN0PCVpyzP6USW+6i751n/wTmRGJlrOzOvoAxIkLPQ6xmj/RlHkn4yTLBnbpNDh61 /5JeQbWaTbS2yQ+IzRIgFUd7Mw7xwffDL+Eayz4j8Ui2RjMdBPFln7oom8oVwUk18Vc3 cdLLYZXzToX72pzFi2ZOwoHOYYDjs4P7DfCNaoFPvAypfnvR79eozWL8opNGds+62Mf+ jWtA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=rM6bY1ko6wl75GUNLtcVAwak3xuZisLbZKcA94fo5hk=; b=Xev+ajRxeVCZyxf8r6oL8heqjZQOBSKbZpQUl+AZNdYIhJHkhLoCo+GCmsimJ/efcu uEKqlaWHBFPtXgeRM/BsnaM39+nybSPXNBRm0Fnnu7IZHBOkc7ARuatruj4nNNQ99DU5 ColQGYERBdoPaTIP3OzShDfBi1jW5RdsbVD0PImgA/ig7ccpne61+pL+35LTHsjNV5cu 126SGo+fmuf2n8SUgNB16GiYvqaVuFqjfilnJjKhAW3upXvyG+TaRgcfLdxUwb8kDm4F dF6ddX0LqVXaKLUaRRJhXUNobu5IMEF12WHrgEUJqplQU+Reoyl5XxFJCg+5JWqCv8B5 nZ/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1SCn6gEM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y13-20020a50ce0d000000b00435681044a9si8516381edi.372.2022.08.15.16.32.12; Mon, 15 Aug 2022 16:32:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1SCn6gEM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233589AbiHOX2V (ORCPT + 99 others); Mon, 15 Aug 2022 19:28:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353381AbiHOXWF (ORCPT ); Mon, 15 Aug 2022 19:22:05 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33EA31109; Mon, 15 Aug 2022 13:05:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7DB8EB81135; Mon, 15 Aug 2022 20:05:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD79DC433D6; Mon, 15 Aug 2022 20:05:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660593911; bh=7R7XRJk9VX5l9JuQ7DA+8HY+77GdZP4j+qwtfoEEtrE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1SCn6gEMYZ52scQxweo7dUa2vzlil6iyWSbjgqK6DQuCkzIW/60wYRXQZ+Pa6Cg8g AcKyukryvdTwqSdHzweI2R1l4wSVK8AQBOyKvnNF9Bq6JeE1M/aYz+XIq69KxMgbMz 1xczASoJZ2zITdfAtF4c8vM9glCxn+Tuf1rZ5iCw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Fabio Estevam , Wolfram Sang , Sasha Levin Subject: [PATCH 5.19 0347/1157] i2c: mxs: Silence a clang warning Date: Mon, 15 Aug 2022 19:55:03 +0200 Message-Id: <20220815180453.599917677@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Fabio Estevam [ Upstream commit 3d43273d7d1e1a5374d531e901d3c537b4c97bbf ] Change the of_device_get_match_data() cast to (uintptr_t) to silence the following clang warning: drivers/i2c/busses/i2c-mxs.c:802:18: warning: cast to smaller integer type 'enum mxs_i2c_devtype' from 'const void *' [-Wvoid-pointer-to-enum-cast] Reported-by: kernel test robot Fixes: c32abd8b5691 ("i2c: mxs: Remove unneeded platform_device_id") Signed-off-by: Fabio Estevam Signed-off-by: Wolfram Sang Signed-off-by: Sasha Levin --- drivers/i2c/busses/i2c-mxs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-mxs.c b/drivers/i2c/busses/i2c-mxs.c index 864a3f1bd4e1..68f67d084c63 100644 --- a/drivers/i2c/busses/i2c-mxs.c +++ b/drivers/i2c/busses/i2c-mxs.c @@ -799,7 +799,7 @@ static int mxs_i2c_probe(struct platform_device *pdev) if (!i2c) return -ENOMEM; - i2c->dev_type = (enum mxs_i2c_devtype)of_device_get_match_data(&pdev->dev); + i2c->dev_type = (uintptr_t)of_device_get_match_data(&pdev->dev); i2c->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(i2c->regs)) -- 2.35.1