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;