From patchwork Sun Mar 3 22:34:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13579911 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CE7E9C48BF6 for ; Sun, 3 Mar 2024 22:35:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Dj+f/qUitQk//2yxzYLnlfEAWCn/sfLR4sg0wbv6EVw=; b=4AbuCgeaFQMaPH tPspe6vDQ2Yygrf91BKVipTo/OfPhk08InfOXPAehyPMWRyC6MVckL5HO7JkbCwhd2Z9LaIBywuHp Id/074hr3lMpKo+IaOSOuPXgP8oxF/Mr9RRoFSDFdsTAceJozbPj6pVqIbUWGdHF60kP5UzsNXpb8 +uET4yrfD9gaWBH92u095EF88kdoHDduIsB0JTA5QX+kdj7t+bGgfa0++ds2ADHcu9k3GPnNWoebd UfKZRJLGJooLOy7n4XXovOBuYqH1iUw838zbBT16DGAdzkzzvlYq8pOItiSt15dWX8UzMbB9IoWqD kyJNJsD9SaT6vOkrYxHg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rguQF-00000006sPb-1JnP; Sun, 03 Mar 2024 22:35:07 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rguQB-00000006sNH-1FYx for linux-arm-kernel@lists.infradead.org; Sun, 03 Mar 2024 22:35:04 +0000 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-a3ddc13bbb3so819481666b.0 for ; Sun, 03 Mar 2024 14:35:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709505301; x=1710110101; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=xTzTPSFJJSI67HQWXkNrt6MJvZTP1w/baNKfj/xa8GI=; b=HXcDowb5cGOwcvlCj1FOkWzjaGeDZXT7Mv76oEWC74RP3bBsVKasXxLRKKSAOp4Qm6 1GYCu8Szx9/A4+OR/Oci9ibq3QW0NAWZJ5StL09krPccYiCVIn1xlB+9gvvfZaF7J1zl zJLriC1iuzY4SVL1qtCAoifJXTSrywr8gl1022wWG4W87etuzl0hvbaaXHFsJR/YZOmj QzZvyy5FCSkguew2B28bnqKRO69DK/P7j5JLL48kJU0lBY26+QYh49JbWqJyw+KliO1i iLPjE2mAF2vkI9RAgW7YPKA1RWdtN4Il05r/BSlliY1/OBt6JR1uad0b1AFPI7I/KHwD yGAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709505301; x=1710110101; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xTzTPSFJJSI67HQWXkNrt6MJvZTP1w/baNKfj/xa8GI=; b=fl4P3cnpltlEYzC7oOCJ0k6k0yb2eST/s8dZLJA5OzpNkc8HlEAN2kJivLQAkjFLtF MKJcDDXG+RZ5yDCaLyzq05fu+qc6TD4hYzedPCWradQSTOrd0U3h9S5MlKV3WYAt1TzE GxM6aVSWC5rkGpKoDr+sI9+uT0Yp3+I4ZdLjp7pUVaTkhoX5SzTYrhGnMppJEW/M9dy3 OB3f06A7WMQ4PJDZnaMM15CJrSSO7CDg+NMc9GRXms64jDof/HLqN1paB7cHx4YP86U9 rqGyrlmZJMnkJ291QmJLTAAh2SWYgM1MxEL5Ojf0ZthagewAx5ZwyGg9C6m652cHgzWF IxZA== X-Gm-Message-State: AOJu0Yz0BvihLIzAHiYfEC4Kzo60P6oIhvtTz83tZWb5ZvQBDIe6SXXf 8hldP1O8qAoSnLexaoIHyMYNBNswbxpdwm121g34iaroqEB+lo4z X-Google-Smtp-Source: AGHT+IGGAC31qGiya81QMwWaaqd7Suu+f3HVRiroMo/1cd39MIzF8wf4b4bttupQdAjvGyaP0hVAtA== X-Received: by 2002:a17:906:7f95:b0:a3f:52dc:786b with SMTP id f21-20020a1709067f9500b00a3f52dc786bmr6504542ejr.23.1709505301306; Sun, 03 Mar 2024 14:35:01 -0800 (PST) Received: from [127.0.1.1] (2a02-8389-41cf-e200-b3d8-5b4b-5188-4373.cable.dynamic.v6.surfer.at. [2a02:8389:41cf:e200:b3d8:5b4b:5188:4373]) by smtp.gmail.com with ESMTPSA id v23-20020a170906565700b00a455ff77e7bsm82204ejr.88.2024.03.03.14.35.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 14:35:00 -0800 (PST) From: Javier Carrasco Date: Sun, 03 Mar 2024 23:34:39 +0100 Subject: [PATCH 1/4] char: xilinx_hwicap: drop casting to void in dev_set_drvdata MIME-Version: 1.0 Message-Id: <20240303-void_in_dev_set_drvdata-v1-1-ae39027d740b@gmail.com> References: <20240303-void_in_dev_set_drvdata-v1-0-ae39027d740b@gmail.com> In-Reply-To: <20240303-void_in_dev_set_drvdata-v1-0-ae39027d740b@gmail.com> To: Arnd Bergmann , Greg Kroah-Hartman , Michal Simek , Jonathan Cameron , Lars-Peter Clausen , Lorenzo Bianconi Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1709505298; l=933; i=javier.carrasco.cruz@gmail.com; s=20230509; h=from:subject:message-id; bh=KzRNp6psHX0hD9N5rUDVkaEjilPRdru5QHUov78Y6Fk=; b=Bzh1VYpjExyTG7K74n2pcCvXv9d5Kc6pvz1eaZ+rOQpXrmWI1NSQzty72iMbka7PRrQ7erILQ riLgAilmW8CDt62Fwj13gjVXGVIAFQcEwK80bILO4G7qYOAJHnC5rVD X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240303_143503_375572_C27508DD X-CRM114-Status: GOOD ( 12.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The C standard specifies that there is no need to cast from a pointer to void [1]. Therefore, it can be safely dropped. [1] C Standard Committee: https://c0x.shape-of-code.com/6.3.2.3.html Signed-off-by: Javier Carrasco --- drivers/char/xilinx_hwicap/xilinx_hwicap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/xilinx_hwicap/xilinx_hwicap.c b/drivers/char/xilinx_hwicap/xilinx_hwicap.c index 019cf6079cec..3aaa4b4d9f08 100644 --- a/drivers/char/xilinx_hwicap/xilinx_hwicap.c +++ b/drivers/char/xilinx_hwicap/xilinx_hwicap.c @@ -636,7 +636,7 @@ static int hwicap_setup(struct platform_device *pdev, int id, retval = -ENOMEM; goto failed; } - dev_set_drvdata(dev, (void *)drvdata); + dev_set_drvdata(dev, drvdata); drvdata->base_address = devm_platform_ioremap_resource(pdev, 0); if (!drvdata->base_address) { From patchwork Sun Mar 3 22:34:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13579914 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8CD69C5475B for ; Sun, 3 Mar 2024 22:35:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=x8X7Oox0kSccgNnp08OMJdFeHdVpkx9thk0Os7K20L8=; b=sEgkirDgbpWtmo yETtRdLi99O7MKnyfhOe+R1NcwPtuNpuuEIv4Oo7ulkyIaiimcODyh3pIbpkZuIlWWTi93uJzBH+9 F639wKKU/mkGIbPpt7cH9ZVbDvgH+g1wxcutbsgZzDmKNpME59f9gh7JOow7uoSBomWVgHRVaFq/7 bpe/v0OhgjOGfm4fgEznfwru8Eu973qNMK1PHafULg9yG5avDwUpShPMESc38QiU6F44D0lRjiI/N cHyQvNbqBp9dyDlaigSNO+AmokMySYXp0xJRjO70bVTTWZ/j6uVtV/XA99KijyJzO/5Gj2lHV2p7B k1XVkPEszwbJO2Cl+68A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rguQG-00000006sPo-0VuK; Sun, 03 Mar 2024 22:35:08 +0000 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rguQC-00000006sNi-28bk for linux-arm-kernel@lists.infradead.org; Sun, 03 Mar 2024 22:35:05 +0000 Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-a44db6c5144so143830266b.3 for ; Sun, 03 Mar 2024 14:35:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709505302; x=1710110102; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=K25iWeoQwshT7vgS7weC4R0luoK6Av4sdvxlo5qLywU=; b=Y3NW18bYNs5P7Dztq0PgwpYjTVTyLw6pDGlBYnAfOLGs6pryvGbE+TfwwXobAHNnro tGxW3ZjVmpdfZt+awxG82nnx8tiycChyyrxS/UgMfhPgQYiyKZMedzULcMkKLeYOdiMv AwBb8cuPWtmj/PPpjkeoRt8oL5bpCjkpcN4oNVB01dbPkvULM3hHJlUYXhch8yn7UFf+ NvXpG/WDsdaptRvz7ggJZtVBVe4H9X4YcHLajxFa8/Ps1uO0Jaci92HRJmQRasC2QZ5+ hf2wsRM8IJdLHuwzj8vyWsBimqha1XiRoNHRPnmMXhNxDaBx9Q9JYS4wLREFuncbWWp1 Ol+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709505302; x=1710110102; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=K25iWeoQwshT7vgS7weC4R0luoK6Av4sdvxlo5qLywU=; b=g+Al/cp4UmZZqAs5/40iqBpEIOekCPuWTQyk78cmg9G9BO9T5HusyBvpVNZQfEHNCc 2pq5LqaAhN5nG03LOJdiuJ2IJm1xrm2bEyxASu0QU4+w+51TZvDYPDjulCZoUhXQGBnM OmxG9THl4wAZr+JXGOD9d7NEkYI8uR/lDQEXExRbCcAIedbOYT9dMvnn7U/telI/ipCP GDJdtDdOeTIJoNHjkolmhDvN76abut4nhjEQz+tedoobAHtPynKbwtZV8xiEklNN2oGi iCGHcZtBR5YNh3yIqo4V+VrJ7mqDwuDRqDQLmb2GY21hu2OdC82QD3ln6gOpeWWTt9l8 QFzg== X-Gm-Message-State: AOJu0YzeNIubxM0PGw+LQ05U0WJGouKQhg/c0m1s+UIpbk8tJfPcXVr1 GsSiDJm2g73f3LiHXddrR+Sc6vbMnbn+nKjJ2poP26x26HVdNkl8 X-Google-Smtp-Source: AGHT+IEUy08uXH8IfqoNNG9jxD0szuT7RxWdCw4kdgoYel5Vjgq5TcsF/FensbsGLw/VW17WjdtMtw== X-Received: by 2002:a17:906:fb0e:b0:a45:153a:e2b7 with SMTP id lz14-20020a170906fb0e00b00a45153ae2b7mr1550758ejb.28.1709505302688; Sun, 03 Mar 2024 14:35:02 -0800 (PST) Received: from [127.0.1.1] (2a02-8389-41cf-e200-b3d8-5b4b-5188-4373.cable.dynamic.v6.surfer.at. [2a02:8389:41cf:e200:b3d8:5b4b:5188:4373]) by smtp.gmail.com with ESMTPSA id v23-20020a170906565700b00a455ff77e7bsm82204ejr.88.2024.03.03.14.35.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 14:35:02 -0800 (PST) From: Javier Carrasco Date: Sun, 03 Mar 2024 23:34:40 +0100 Subject: [PATCH 2/4] io: light: st_uvis25: drop casting to void in dev_set_drvdata MIME-Version: 1.0 Message-Id: <20240303-void_in_dev_set_drvdata-v1-2-ae39027d740b@gmail.com> References: <20240303-void_in_dev_set_drvdata-v1-0-ae39027d740b@gmail.com> In-Reply-To: <20240303-void_in_dev_set_drvdata-v1-0-ae39027d740b@gmail.com> To: Arnd Bergmann , Greg Kroah-Hartman , Michal Simek , Jonathan Cameron , Lars-Peter Clausen , Lorenzo Bianconi Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1709505298; l=843; i=javier.carrasco.cruz@gmail.com; s=20230509; h=from:subject:message-id; bh=uxOHYTUIDNZtxym54MJ4KWGaL/3jfluXSg7XgXyRNKo=; b=9U56gnbrtl58hQhPEivthV+gdebX1FTESKQOFsHbDZcAIYEYXNyD4DqIIg/zESPYzTcM5/JvZ bzjOzfq1cVPDeJvdw53D3AYNGJ6Bqpm11MMs3vko4DCb2aUNw8Bjeuq X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240303_143504_589426_54EC5F04 X-CRM114-Status: GOOD ( 12.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The C standard specifies that there is no need to cast from a pointer to void [1]. Therefore, it can be safely dropped. [1] C Standard Committee: https://c0x.shape-of-code.com/6.3.2.3.html Signed-off-by: Javier Carrasco --- drivers/iio/light/st_uvis25_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/light/st_uvis25_core.c b/drivers/iio/light/st_uvis25_core.c index 50f95c5d2060..d4e17079b2f4 100644 --- a/drivers/iio/light/st_uvis25_core.c +++ b/drivers/iio/light/st_uvis25_core.c @@ -291,7 +291,7 @@ int st_uvis25_probe(struct device *dev, int irq, struct regmap *regmap) if (!iio_dev) return -ENOMEM; - dev_set_drvdata(dev, (void *)iio_dev); + dev_set_drvdata(dev, iio_dev); hw = iio_priv(iio_dev); hw->irq = irq; From patchwork Sun Mar 3 22:34:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13579913 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1F01AC48BF6 for ; Sun, 3 Mar 2024 22:35:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vMt1ATqRCEZ/MNFEuZXJeSLrrIBN5S3ZA4SdSzz/oKE=; b=vJ+ApmJgIptpJL 8mxNcCwZcWv+ylQJosaKyjncPeF8yr74mL6jWw/ghDzuaDTXLVH3HjhUKkAKBiawLzElkt87duFuE pWUe+PSB6ve351+IzuYzwQrfNDTAkeey2cEbOpNL0aup7iKv7qQz9dNnFiuPAKszCwvpsy1uaVqpr O7tscjWC0q9p0e0Il5Wy3LFIg4FLn3y2O4BhTDcHX6lwtHVxdn3BqmK9ZrXs1i7HhvIGZE1ip2fr5 DiWg1j29X+MV94OqUjS53DXDTmNYC+YttH09UFvgvbKOJ5TsC6HUQZSxsV1HFpG9tOrHWS1yXXBr5 9X3kbDEEBxWZgH+sf3Cw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rguQH-00000006sQ9-3fTw; Sun, 03 Mar 2024 22:35:09 +0000 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rguQE-00000006sON-0FaD for linux-arm-kernel@lists.infradead.org; Sun, 03 Mar 2024 22:35:07 +0000 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-5656e5754ccso4989915a12.0 for ; Sun, 03 Mar 2024 14:35:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709505304; x=1710110104; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=jWKjl3tAqIGbINoDjlumk8vST9xvqacgLbIKFANq1XM=; b=nGF2qAej3Rzau5ldBNaV2XUs6xo4If0MHsSDOYUxLVG5cvxSQjXWbPakrpDZSHhVdN 0ap1p6OgMXxoqhr7DjJpyl47ehpHMhwn/AaodDc9F+KklfEOP8A8EFCMrroA1PE5dwTW lmQrvTVlMopXhjsHyqcWoiAbXQ7XIV35FqHswxDQzHgCKNWtWUHbt8mQiiLcXpWtH/Hs YFwhqIZwL+IH/ctXU91Bo3zlFdMcLh1MQ8XKhkm2/NKws8rGolcvFrdqXmlwDbKqL6u3 +mqDnMY+w1DgfV9GjGDfJSlmnpIsKJq/xMYJ1gTMZnj41GMhMV08pgedfQKI9qMabOdN KKUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709505304; x=1710110104; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jWKjl3tAqIGbINoDjlumk8vST9xvqacgLbIKFANq1XM=; b=ADn1a0QcfJFZL8t977I9VfqxwSN8ByPMQO9+8gouNS+KhWVJAtvk/DmFAPJJ5y7L4m Iu0sGKLhwdBXgwm1FdzygZ8Zya2OST/hDRGVPKy2QqaxuicY8Z74wxmcxJNj0V2DVpH4 NHN05uXEgJHcbMnBWga3LJsc5GLjZFHC9DbEOGWjlhjy+6VP39lfONrPtrcy5d8o7Rjd 5vZvZYFTF0QIsF9iZBRGKzPd9P6CO0cXhO/CBxKM5s4LhIreBYSWnKBlWS/oKMDiqOTU KD9CoTmTVy13gBfzwmdIxzZluV0TTue04EvcKQum0k0JS7sTSPwWnz3puAUqoUq3SIzM FLFw== X-Gm-Message-State: AOJu0Yw1wnj+3AEYPnom487qeN0xwgbR/Ilw8omRiI8SSFFGcoMzRpvh p0y1BSDGd93iLm43G442W1naX0y5FlzIDOUeQzRHtX7azUUkhN56wKPGVlYFUXeq0A== X-Google-Smtp-Source: AGHT+IEJFBzlnEnxBp/PHypSF/HfNr25oWw8mUZWDBmD36eOtQusVnD+aAwubxhnoYyz1WZf7WAYLg== X-Received: by 2002:a17:906:e211:b0:a3e:b407:65ab with SMTP id gf17-20020a170906e21100b00a3eb40765abmr5531102ejb.50.1709505304065; Sun, 03 Mar 2024 14:35:04 -0800 (PST) Received: from [127.0.1.1] (2a02-8389-41cf-e200-b3d8-5b4b-5188-4373.cable.dynamic.v6.surfer.at. [2a02:8389:41cf:e200:b3d8:5b4b:5188:4373]) by smtp.gmail.com with ESMTPSA id v23-20020a170906565700b00a455ff77e7bsm82204ejr.88.2024.03.03.14.35.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 14:35:03 -0800 (PST) From: Javier Carrasco Date: Sun, 03 Mar 2024 23:34:41 +0100 Subject: [PATCH 3/4] iio: humidity: hts211: drop casting to void in dev_set_drvdata MIME-Version: 1.0 Message-Id: <20240303-void_in_dev_set_drvdata-v1-3-ae39027d740b@gmail.com> References: <20240303-void_in_dev_set_drvdata-v1-0-ae39027d740b@gmail.com> In-Reply-To: <20240303-void_in_dev_set_drvdata-v1-0-ae39027d740b@gmail.com> To: Arnd Bergmann , Greg Kroah-Hartman , Michal Simek , Jonathan Cameron , Lars-Peter Clausen , Lorenzo Bianconi Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1709505298; l=837; i=javier.carrasco.cruz@gmail.com; s=20230509; h=from:subject:message-id; bh=79mbb2+TIDQaUEgPgjGzGyWmQ6IE/7EFKvBoMMEXxSU=; b=Ply3oD0X63A0jUQs96z6imU6GNzQvYsqaOQlwrql7jVMEZiC6RdkkNnbXavoo/vKb270qQCxv cqDXoIDQ/xcB/0vZryFbg8B/vEZBmlU5k5d551eaGBkg3HYXZacuDvS X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240303_143506_194165_2527AB2E X-CRM114-Status: GOOD ( 12.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The C standard specifies that there is no need to cast from a pointer to void [1]. Therefore, it can be safely dropped. [1] C Standard Committee: https://c0x.shape-of-code.com/6.3.2.3.html Signed-off-by: Javier Carrasco --- drivers/iio/humidity/hts221_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/humidity/hts221_core.c b/drivers/iio/humidity/hts221_core.c index 2a413da87b76..87627d116eff 100644 --- a/drivers/iio/humidity/hts221_core.c +++ b/drivers/iio/humidity/hts221_core.c @@ -573,7 +573,7 @@ int hts221_probe(struct device *dev, int irq, const char *name, if (!iio_dev) return -ENOMEM; - dev_set_drvdata(dev, (void *)iio_dev); + dev_set_drvdata(dev, iio_dev); hw = iio_priv(iio_dev); hw->name = name; From patchwork Sun Mar 3 22:34:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13579915 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DA844C48BF6 for ; Sun, 3 Mar 2024 22:35:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7+Jo7fIvRVUR5L4d123SPA6Xyzo8McJFc+D5FzO4WhQ=; b=2NlZZxlCn9pl0Z m4fDRt1Qufiff8dFWZjegiazcck48MTve0JoxSlLkM4w+Mri7wBFjOpfT4e/qbn8x6Ol3NRid9dIG v6bxitjLsmyCCcIGilPNrWHjGlNQKdP1UapZT3YPFuMF0nWezjJPwRwI+K+owxB1x5p85DPJzPIa7 tfGaCoEH/zqlI6QO8oFouJ1Odr9DiKjAkLhpPD9YhEpw/4oENcf8XkOQySWmweM3ssstcqH2R48z8 xijDWLYmJzfLTLnM3DfgvcuKXh+Xki+GTA8V2/OoMpQ+uowRAx84XAOdkOHwTrC9WztlkckmssAc/ cEf38Gh26zhePbJxOfqA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rguQJ-00000006sQL-2vCi; Sun, 03 Mar 2024 22:35:11 +0000 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rguQG-00000006sP1-2o0t for linux-arm-kernel@lists.infradead.org; Sun, 03 Mar 2024 22:35:10 +0000 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-5133d26632fso1358293e87.2 for ; Sun, 03 Mar 2024 14:35:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709505305; x=1710110105; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=MwrxwMBHKXGt91HOfjt4Q+TK1KpcsaOeqgsWIhDoN/A=; b=KLriuMeMkwPQFk3DAt3e6hlA2gK7I1L8nmvYuzVeDFLzL3Rpl8B5CFe+BWm2T7FSLo TsLT2HuCEZjt3WYv3PCjZZAYHShfKur+KEBXHKgX8rtahV81j06M8tmlbT94aWwe9bZe m934xe8H3dVY0/z1XBNnQLrF3DQVisXg3zRaqb9CAcBJhit4AC6qsIbv7Eq+jSUO2IM0 pVe2sDPxEQtIwPdmbRMkEBr5KNjFlv5HTnubpT7LkcfL1glymMGZSuWGRdMcGus/XuaK NlAZMosBoE2NpJBXWsPLtdsveorJPSf5jl6D6qPk8YsQaYvX1lD3EncghLSOQwJS36KU QUYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709505305; x=1710110105; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MwrxwMBHKXGt91HOfjt4Q+TK1KpcsaOeqgsWIhDoN/A=; b=AdbeGSciUTi4y361qk0s4YwONoJE+7HAm0h0I0+3BohjM5C5SVKxTLofbApo0qqNGh i3vme/xO0lNMAn+XdrSngwoPeWgpOFaqSNG/3I+tXU2qE5NIw99gVwOU6au9le2HPrmF 0sFy3ePwAXsi6WLmpCt7dXx/gyz2YrtH6isYJM5XNqb69+rw/ar3UWWq+Q810VWucxVJ Ae7gT9ADJw3SMd3os0Bq9fqBdeJllbltzApWflcMZ6unXFezVB7NPVr4lRnRUYdkClIL h8OV1Pgvb+ZIiMoHvWtglcrczy4vlt2YT1hLaIJLO3X7Txw/pm+fgqxsKaMD9b7siSMQ 51/g== X-Gm-Message-State: AOJu0YyoMDqh+ZzxjHUw53yH6sT/xNbGH2zPlnvmlKkKeE44dkhZMrty VeMV2AGwJpgFDahBUKIyMZZ66CaM2MDGFvvkkHWs19d8PH3E8zFC X-Google-Smtp-Source: AGHT+IGaO5ACvlXUfMGCRGS+B4/MIKQWnaOwtzuv+k3Szi1muf9X7VTGMTuiNgYUa9K+5Q5+zH193g== X-Received: by 2002:ac2:5b85:0:b0:512:bed5:3d87 with SMTP id o5-20020ac25b85000000b00512bed53d87mr4650358lfn.23.1709505305399; Sun, 03 Mar 2024 14:35:05 -0800 (PST) Received: from [127.0.1.1] (2a02-8389-41cf-e200-b3d8-5b4b-5188-4373.cable.dynamic.v6.surfer.at. [2a02:8389:41cf:e200:b3d8:5b4b:5188:4373]) by smtp.gmail.com with ESMTPSA id v23-20020a170906565700b00a455ff77e7bsm82204ejr.88.2024.03.03.14.35.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 14:35:05 -0800 (PST) From: Javier Carrasco Date: Sun, 03 Mar 2024 23:34:42 +0100 Subject: [PATCH 4/4] iio: imu: st_lsm6dsx: drop casting to void in dev_set_drvdata MIME-Version: 1.0 Message-Id: <20240303-void_in_dev_set_drvdata-v1-4-ae39027d740b@gmail.com> References: <20240303-void_in_dev_set_drvdata-v1-0-ae39027d740b@gmail.com> In-Reply-To: <20240303-void_in_dev_set_drvdata-v1-0-ae39027d740b@gmail.com> To: Arnd Bergmann , Greg Kroah-Hartman , Michal Simek , Jonathan Cameron , Lars-Peter Clausen , Lorenzo Bianconi Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1709505298; l=886; i=javier.carrasco.cruz@gmail.com; s=20230509; h=from:subject:message-id; bh=+uTL/LbOPyfNXQRIPhdSYdU7wF14JkHFEOUHQzNgiFU=; b=X7Yt/mnEDq6mQ3tlL2qC7oXey3xLGYsPQNc1pRKacu9QuHEYQ6sqINEtiNFIMFB2LKmi6EBsy mItfn3z5YzIAHIGvODxEP77CuhRZaD3yisx6ToLnfCBmiZhg7GRva1B X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240303_143508_747461_3BDE7CCF X-CRM114-Status: GOOD ( 12.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The C standard specifies that there is no need to cast from a pointer to void [1]. Therefore, it can be safely dropped. [1] C Standard Committee: https://c0x.shape-of-code.com/6.3.2.3.html Signed-off-by: Javier Carrasco --- drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c index b6e6b1df8a61..5bd1295c05ff 100644 --- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c +++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c @@ -2705,7 +2705,7 @@ int st_lsm6dsx_probe(struct device *dev, int irq, int hw_id, if (!hw) return -ENOMEM; - dev_set_drvdata(dev, (void *)hw); + dev_set_drvdata(dev, hw); mutex_init(&hw->fifo_lock); mutex_init(&hw->conf_lock);