Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1523323lqg; Sun, 3 Mar 2024 14:35:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUYrDYm40FFRugf9xQgG3RaGTSab0Ar5b6G9mURb6Bugug5iiIuhr6UjjGQj+alH/Yn6uHzxi3Qyc+Gxa9pTOBGU7R06Qq3Bdipv5aLOQ== X-Google-Smtp-Source: AGHT+IFv+7Jvb7vYROftJjnEes2mk8w1PR099HsRkDvHszg9fL7HNWxdSJsDLV+8m1AI1hxW8MTB X-Received: by 2002:ac8:5744:0:b0:42e:f4d8:f194 with SMTP id 4-20020ac85744000000b0042ef4d8f194mr443669qtx.32.1709505343588; Sun, 03 Mar 2024 14:35:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709505343; cv=pass; d=google.com; s=arc-20160816; b=VBQweArmvVfw1F64+qLFNcYokFxJpKAI0ZgBnk7DUvvJHf7Dz30zqj5nk2AapLpvTp RP48dAHO05327zex2Vc5RcTrsLVRQm0U+8qxYKbQ5Ij0Qwy63WqE3FIi+Y1Tj0PHfkdD S7O1lpdlb24oHVOAillgTFgNmkjW58yytT7oA90190AWAWSDYAL2+dSoDn4Ln9fDGbQA YIkUyvzCJTc3xxi1wJgFzO4vCjfdSTwJ3rF6cz8xM6fMlm7mG8bklfGh7UdRKa22GHzG 3viqmVhl7Am9uXeFxl6vcCd0umqnuFaTac7cR5VY1E+JumNI6Z9bx8GpqsLqaYXV2Nui k4pg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=jWKjl3tAqIGbINoDjlumk8vST9xvqacgLbIKFANq1XM=; fh=PR1UPg4Sq9vcSI7SfAt/DBi6eN7UAuI4AQSil1+GfHs=; b=PDrOlNl+31IXURfZ+AhHhShFcOnCTwQi+XAKn8qSw0In0Yma5UnFsE2mvSxKfEu/qh NvKAqfD1TXuESPa3IMCFQYbv1sCcA2oLCn7TzI487xLCmvGtNVY/y/U1UT41CONwk5yg LEbcWVvwLjhdc4cl7QUHmsjQaBN5GRO46MOWmMdxupVZg5MFBYnEWGgN47y6LKdzSot1 ic0IOfRZOIRwYObiILOoMgDw3ZNtcZnPXp6KP+k4opButDX42seDoY40jxL8748fxWJm 3YwpMEVUej2UH87XBTHI/dN/RO3bxsnhGNy/EHtji7xqZCt5dTSdurLqpfkgaCUxevWa RrbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=E6AKprn4; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-89934-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89934-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id yf13-20020a05620a3bcd00b0078821519901si2735429qkn.34.2024.03.03.14.35.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 14:35:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89934-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=E6AKprn4; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-89934-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89934-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4C1131C2040B for ; Sun, 3 Mar 2024 22:35:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C402279DB7; Sun, 3 Mar 2024 22:35:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="E6AKprn4" 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 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-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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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; -- 2.40.1