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: 13579907 Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5793479940; Sun, 3 Mar 2024 22:35:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709505304; cv=none; b=FBJRVNkG5ybQ3wlB1i9u/+m2/0Ex0AYcKGOqzFMaINKkLFYLum8db//ytQNgVo+GgnC7cZUc+nX1sj4A4INiNwvasMob8z7gpW4wsCskfAJ2ctnm+XEYWo3jB74S6VD0Fd4Qn3LtoHK6AaAjfPXnpLo0lfhDff2dYwEYJMucqUk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709505304; c=relaxed/simple; bh=KzRNp6psHX0hD9N5rUDVkaEjilPRdru5QHUov78Y6Fk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dApnVmaXiV1+rmx/CD11r/iWAbRfz7kN4/Y5E4EtNRLCt+c1u7weiO6jVpqh5TYqhD8wF8lwLcsmWVObKeU0o5YJK96TyLVFO0nPa8lyGsAtNWOR3Yv/D9snG48J1jHsHUyzgQqnGKsg4w9xqSuugJFw3KKiLy/lyWxMm3VW5gA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=RgKxOuyK; arc=none smtp.client-ip=209.85.218.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RgKxOuyK" Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a3ddc13bbb3so819481966b.0; 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=1709505301; x=1710110101; darn=vger.kernel.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=RgKxOuyKlTDT6cyoq0trRXWevfEsysTEuI6WU/ERYRXIsrhGkQi7WG8bPWPqJ3R+JW zaN+U45C/leY2heyEXO1yIQXDcCvsv/wejnVeN9qlYpUclTZEEWV/fdo7pc+cXjkBKai bEeJzf+aUR2wbzXXft0ZHugweIeGNnhQqk6oTyIrfcFd9PkioM+1rxz4NVxyV9agRoFL en+EZCUCy/8iDxxlS4pmIuPBbFuqYlDn7HS3+Qr1x71gUoCRrjnwvBdIIZt/aft9wdGf 0Fs8+APv9rYSzqTY/d3ie1W52CHESdgf0trRHWd791yEaRgcMNkaDdTcxcoLWU6GjoN8 hjAQ== 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=FVo5nVdxbyow+2GbGIpw+ar4sIScJwZKU12fqSPtcZtv76Yq/PJi7UCazTIzHInE+/ r109bJ5bbkVSgHbshyrmcn8Ral+ShEvgBB6LmvtjTi7RMcfLnibA8RkqSrUzJQidmsKx cJwebWr28va63sLNST/ypYND80hdv9QepuzCLeTM/ZlAWD42Rc582x4RBFOw/fDYGLFi MNXEHE5HXm2sUaPvFaAcw2givrGXuh02SIWmT5EdqYF/DjxUjLHtW1763wFrTTY/KuS2 cfBwCr8UWwWPRPDw3BnToR33Yli3OfnrIAIv0mshmAnJ3Rx/JXmQM3MDpnYB6mugQfCL 0j4w== X-Forwarded-Encrypted: i=1; AJvYcCX9THh5mT7vFf/mIN0c1aHcacgVdISnYkVT0XgY2S1FeJ7eUIorlGCW9+19/1EnFlQM1IdgH/yQhfuS2z0VgJgBh2KqvxZ7cfRhjFwJpd6i7OjtdaBMbUnaoUQz9N0ajpa6WYuimas1 X-Gm-Message-State: AOJu0Yznlp4H8/fZ9DU3FD8VAcHz1xs889ZdP8c30calBK8LJV/GOv91 G0ORVqlPPKR1jfeD8yrxAxI94n1jMKBRlzo5DxkTqkkF5iecrzGgTUtZZS7YCTjgRQ== 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 Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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= 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: 13579908 Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8A56D7A71B; Sun, 3 Mar 2024 22:35:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709505306; cv=none; b=tmhDvE/dbd62ePf0M30bkVyXOJgPyaVyoShH7eCGtBmAXbCyKc+fsItilub0TDSfJAq3jkgOEOZxT8A2V8vwr3gPmgkkEUJpQJZ6Qyz++eV6fwzXHETPotCV3kH3fsFstsl+rYKqNfTjnhIsVzppVpT6Vk263NkdpuL6wh2Edvg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709505306; c=relaxed/simple; bh=uxOHYTUIDNZtxym54MJ4KWGaL/3jfluXSg7XgXyRNKo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MbteirRewAo0cZosaFz0Avw7EJyqp/LhqJ6X4rlMpAt3Jh/4/LWfkj/kX1THKbk1S0Fo0FrLOmkMJcDxRVgv5Fsir9j/24lwfAtkuYf3zAv6PO2zw+bJTtxb9Aji2Xrw2HJJeUT4rnEGjxz2mtWpjHcBU9TQrDCevHBxpHqD/SQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=RmSkDn5c; arc=none smtp.client-ip=209.85.218.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RmSkDn5c" Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a44db6c5144so143830566b.3; Sun, 03 Mar 2024 14:35:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709505302; x=1710110102; darn=vger.kernel.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=RmSkDn5cTAWOY/AngA5YaMku3eZpKzCYTDzbQD4jMqZtpZKSpQSIZMpTNVKjqlHjxM oP/mDmujSZhdYnWgrZ9fiTnRfTlncd/LAWzXsHo8eptyLSmwwUe/oz24emEiLs0r52WS afvL++P0VWyuLBykMeNqG+bnXJVdmSWgH+YV0/Ni7KeUEGO2FkEmLz1g6ZUTXAUZOFhA rq3Oq4/V8jrs5e5it1QDeAGeQvMqvRZa+2rk5uny1QkC4ii819IyEeKjlhoAZzTY8Mft 0ogzuusVRGsaVq2ruNF1Stptc+OXCi2E58AZHFrvCHgG84VvyfUOs5hy1dXm2/A579F5 K4QA== 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=OHf9yzXqyzSkULUxnPyLd4s5mxiXCMekjPrvfsKpzrJrs4OyjQXOugFAjruTUvcTO3 bDeW8E4KYigLGsDZ3gjyjgUCkklXWwCqDN0oNRTMMigGi+UOGj3R86UAAlxqzDvn2eei 0p9PlQGMG/thnuTiho/svhfRhWcJJ6f53QJO0VRVi5EaceB0Ur4EM9zn2EoqUMJpvYy7 c7+52Dul9SaalSUK4m5Pxlejns51GfpVkR5cSsaHkOTXyw1KBhzI8nmgCLTgSLb2sW9+ P31XKY20AZBwlYd6vUxFlc0MLZsbIpltMHysXGym5kvzATbMnDo+T25Ju6ywZoZk0WmC XenQ== X-Forwarded-Encrypted: i=1; AJvYcCWZDJlhzpZyU4PGnjiabJc+59x44W3fdOU129bNL/NU0siXS6eb/AUs4S7Dj08FxUb/36uomKhZRHfAyxmiStLyUyNQIFjiZv/e1uCAKmcjok+1t7Yb95UACr3vac35EaAy0PypYVv1 X-Gm-Message-State: AOJu0YyN6Wxvgd6TzuVEExR7Jbnds1mMrbTGrO08GhKxCxO32ySa8NNU HkeiBp7xzaAV95Uo+Calws9bydYFKC1ZCX2+3pjp8Aas3hkAlUTOV2USKw5xD+L8UQ== 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 Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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= 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: 13579909 Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 48A8D7B3C3; Sun, 3 Mar 2024 22:35:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709505307; cv=none; b=IxVP8jyaERk4iZ9pVKA2R/usBl4J6P3ZYqQVHR6owN5/uqNzE90JRTJudCR4fcjidgxw6KThrCZhgqM35Ecuw3Q8IXMcG1FI/sTeHI+IiwFYRPJfcY6SgdVrJmQdRN32qkTeJHkmk8V4UF0Gwluz0NO5L3nERl2Fwi4ojtNvYHw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709505307; c=relaxed/simple; bh=79mbb2+TIDQaUEgPgjGzGyWmQ6IE/7EFKvBoMMEXxSU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=D8pbB0to6gCYyAOIdcL8bkGXr6jlr8iDq/bjW8UgmJFSTPFnZBicQDBgeopwtKHPUsxZu2ek06eJAWXWa7Dl7CVSr3GVDVv5X5PkFOgQu4H1kkX5hEaiF0HE4e/y97j7fHHfavyBYxiJx5NrW6WhvaJgfOQVL5IHkhEhe8swNl4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=E6AKprn4; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="E6AKprn4" Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a3fb8b0b7acso507378066b.2; Sun, 03 Mar 2024 14:35:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709505304; x=1710110104; darn=vger.kernel.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=E6AKprn4TxEb2kfCzcHoQon68zL/taSY+8NSHBFo67F7vsx208lic5LzW6AemcIqXM pGVIyDLKoYxx+8e8OcsNvYyXenOBnXRJQN8cf3aINvmzOaeiZtxcYwR7R3INF5nsfILW BFQH4n2SE3Xq6EpwV4ryRyejWm5tpzmmjrdb2w/n30cKhALq/UOb4OSMhFyguTetomo2 hA9KBwe00chKvrMzGl/A8rLhEkpfWKG/BiNXa4L5FgyY5XQv6p82GpgBTG4peznKLSJo SS3jjAUyCNgwjPGR05jPAZNkWRyoF7QwMLy9VC/phDVuI+Vetww5Xdqgw9P5c/8/Q66E 3c4g== 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=IzbgIqCOvNIVUf0TSEDmY5AhKrjD3BmujYDpsywl2wAgKiS8h1F+xz0+xcEqbYVSd3 Wn7xmvSiNN5WmJXG2wI9I7mf2vQ206dXIqgKRh/os98sMfCOLdVT9g4metecYXL6iU99 IxGrOQktUcmB/hDfWgTZCgK/xDwRWcOcU69dHod6rAb1zn1oKbsR2YcObGqUfAX/Ca6u 5QG4jlqGrFr66IunCW1wmm+TM1DPTukptKmbU9HTvv+HY+kLebrY5BbLJCplCofWIfgP bRxL6QjYzNx6WLCjl0cK6EyCHZv3HupvWqicojCItgDSlPLqB/xj/9qlsgWZVHfYq/1r oP/g== X-Forwarded-Encrypted: i=1; AJvYcCVZhlY+rmdZL/IIyVeSydy9/If2YaztSfzT+WDxf+HyRMTxmUXnjhq9hG7+A2EUlc8jKnVTVGIQwmrtkLHHeiaPaQD0Yt7BKMCiwwRbDz4DVgv1ylXA0ctR+KgtRGeFw+CSYtMbEuBQ X-Gm-Message-State: AOJu0YwUV+LiebN1enCthoqc9p7gG41dRw11ByF+Qiy2q1GFcGQwrfMb noMRCqQQRIkadpBZWqajub/CrYN749PbD6afiMuHGYOEfiBXwa/g7aNdKAqyddbMCg== 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 Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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= 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: 13579910 Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BFC017BAE6; Sun, 3 Mar 2024 22:35:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709505309; cv=none; b=P5wDC1YECZ1oNGuwvF+HrBmUgP7/uGICY1E2ua9dPCEuHn1umgoAwM9Xx2Lo9uhKS5v6fl2sNk0CNQWj1JDxNgMLMJOw7Lgw5VQZ6jJ5ujR96RXPMbKNev38A7PT5WNEENFEB3fvVOpFEXyA0UVcCsI4WwsOJisAWRvIIWJGH1c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709505309; c=relaxed/simple; bh=+uTL/LbOPyfNXQRIPhdSYdU7wF14JkHFEOUHQzNgiFU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Qr0btRph1gzvhcIBU9K+1D7RVlfCwryQa9/tXliMYbcL5YlrnDQwPrS9vvCIVn1HdCLKMx23ugSrYi3eY+6suTkI2MPJIsLvK7UzghErz1q8xJwmADB3RrN/j6t8kAx5+HJkDKRZ6SUzEVdTIY2bDB7AVc8E8pBZIySjcByuHGo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=U+cdH9y/; arc=none smtp.client-ip=209.85.167.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="U+cdH9y/" Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-512d19e2cb8so4543195e87.0; 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=vger.kernel.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=U+cdH9y/pwsTERn/ATVm0TqxB0XmBlvXxccMLsd2ojjx63COgOzoWpzw4dooyOpnYG waofyuPeJbxkN+uoX6VlOMZN4ymxJSna02O8J+3/OwYCTDVjJJ7zku6omgE3eUROOGKk NY3Mb3rY3mFsk1iFjxkzF0BOer990n3vdzV8AaG6eP/mBhHtMoJ641zYvCHjCXQbRrhD YhCc8D8gwkWdL9pnkDJwzJZils6vLB4zpkEncD38uH32IkMpk/e8fQYy0JsvdzcTpPwR MvEezwj/uu3YLf8V7e8EXNA9YcOe7Z3+3PfWCy8ifa14PHETADjB7zK4+b73WcEpdos/ 5nkg== 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=mLrVZXe6AdhmxPFxDSZOeMlEPoEhfqbcU6wUD0otkcLbF4+45d0yIaegCilERXwOrt zb6ghAdvdBmgsIkGEutnmRPw9JpVGCPFnYByoIgUTzuPGuMhqpKCoZvHaNxlwLW/s5lT NlL+s4AuFYb1LsCoVaq3Meu/S3FDokuz3kxrw3l/XPahC7OvSFnjAJ9RyMMvXaHbaEG8 vnTl49yhpCXychbuN80Dzi/HiTfJdn9yrIivXVNF0NeeRGmKFSShQ2PorrGmTF3U41p5 jVytZPndskOlElaS0Cq7Xvx9jvY79GasQw/alJmF9hACaG8Gy1okKTX/rgderyRRZDpR BsFA== X-Forwarded-Encrypted: i=1; AJvYcCVs/xmMmjr0El4jSHi5oUnSO2fYSWAZ5CF/93mnC5MA5GMsPYmZO1o1/NQ7A+1oiWc/U+V+MKcRhpp6CRsrYj/Dh2DtTjzg/83tiVJqfQmhbNO1cI6nEoQ+8xdtsHEv4IPbesd7v8Km X-Gm-Message-State: AOJu0YyCEmwwhZjvu1M0GUgFYTEu/lF3IqtnbE00ZoFyYFgH57m7AzLH x7ANXnhsX270X8iZjkkIL88mgHuzPw00R7Qo3V+ZsQvggzvgJbZ7BFtC3O+oloRZVw== 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 Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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= 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);