Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=68.232.153.233 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796195147; b=tlH/os/CWX2vfDYwcZ/urO6zn5o4nNI6MVK2dILQzlwCM0+p6uBBtwxskLe6WcUPz9+S ci0hmONSUyarVAIg1VEw615YMSK2yqvvR9WQOEgmytXjJzdEp9O6jqFuYTS0WpSrI+y5r Dc3eJHVB5mCAU8xSerbZ4q+r0QctwBZ5lrL65kteYYFNew2hVeG1Uy47vJc5CS4InDq5x C/pJEcsBI2mID0wfHaI9bUD/WZgPsGQs4ABtHYYjHOB+1ASN1kNtAaXcHTYOub3L4Bph/ gOo0JOZ6W6ZE7qU6UNfxl5hNuOG4MH41QUhgGJTmbKHH7FjbfG8G9ePYNspyzr/rc+A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796195147; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-Amp-Result:Received:Received:Received:From:To:CC: Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:Content-Type; bh=7ZK5pBB5Y9hqMae+s0uCp+jrOhfFbC5FMiSA6a0/uQs=; b=w7blPoqiS75dOVo40siL/XKUWANwonj/6Ht0kjQ7EeSeiK/Gt2DJ9P565touSF025a9x t9YU3FSZ2nLH26GvdgRHvSuAkDLEBUsLz3xerhfvrXZ7NxP/ncK6J9BByGpewKzPOarBd TQqeTc0GEJnWbKAWOvkDsBCNodk1+5eM5vBKiiMkY6I0Q934Er8YMuo6/a7zmDTIx8NM0 5WQeS+SQUdPqJp5N+fQxJDzIc7O7brQQqfR8wfbkSnjPlUB59dVJtTKj8rqXgZZuJsRob H41q5u7F6OmcmILe8k18lDIHPl3AukG59JwD1FJH5mLNW3Iip6TuktmQvH+GzyEuI9Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=Nk+YxQos; arc=none smtp.remote-ip=68.232.153.233 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0FC27606A31A; Wed, 2 Dec 2026 07:05:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0FC27606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=Nk+YxQos DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1796195148; x=1827731148; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3RMIrm1r8d6q8dPa1Zpifdcx83dAoYCO0CIfl0Yxplg=; b=Nk+YxQosoj0rlifCVqPD7n5TZqFcgeXW7dNCQJZeRnvbqjnSQ7Ag4hvA hgR91TM7YIXRGXDTGIXZ9wZ92GmSOC7SSk4u4L1J807IZVrjo+eNaCuMI Pc6n0n4MinkSJo+IMQyrW1u9/sUbGKw1u2MitfkOvFtnxoZlTrusW1F8h gccUL1Cd1+hPsBehlLjmscVm2yaOEEhL1zbKadd9plMinyosWn9yJqpXT NGICY/XYC11Vb3If0sgRwRdR77Ip/2QxM0hnYvxFTXWpLde0xZQWQxVkq Io+ud2NPk0+5pDQpZXinEfl1x0Y/uyTH5VWIBhsGszKDux6U0PJtm6G1r Q==; X-CSE-ConnectionGUID: SG7ZPA0VRxSq82iqZ6yuRw== X-CSE-MsgGUID: 6P/bDo4LTmWkFCrnEpDGNQ== X-IronPort-AV: E=Sophos;i="6.27,246,1787036400"; d="scan'208";a="67333572" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 02 Dec 2026 00:05:46 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Wed, 2 Dec 2026 00:05:45 -0700 Received: from che-ll-i67070a.microchip.com (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Wed, 2 Dec 2026 00:05:40 -0700 From: Varshini Rajendran To: Jonathan Cameron , Srinivas Kandagatla , Claudiu Beznea CC: Eugen Hristev , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , "Nicolas Ferre" , Alexandre Belloni , , , , , Subject: [PATCH v7 07/18] iio: adc: at91-sama5d2_adc: remove unnecessary casts in of_device_id Date: Wed, 2 Dec 2026 12:34:45 +0530 Message-ID: <20261202070458.87970-8-varshini.rajendran@microchip.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261202070458.87970-1-varshini.rajendran@microchip.com> References: <20261202070458.87970-1-varshini.rajendran@microchip.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain The .data field in struct of_device_id is 'const void *', so explicit casts are unnecessary when assigning addresses of const structs. Reviewed-by: Eugen Hristev Signed-off-by: Varshini Rajendran --- drivers/iio/adc/at91-sama5d2_adc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/at91-sama5d2_adc.c b/drivers/iio/adc/at91-sama5d2_adc.c index 01132aaf6dca..604434fec2ba 100644 --- a/drivers/iio/adc/at91-sama5d2_adc.c +++ b/drivers/iio/adc/at91-sama5d2_adc.c @@ -2632,10 +2632,10 @@ static const struct dev_pm_ops at91_adc_pm_ops = { static const struct of_device_id at91_adc_dt_match[] = { { .compatible = "atmel,sama5d2-adc", - .data = (const void *)&sama5d2_platform, + .data = &sama5d2_platform, }, { .compatible = "microchip,sama7g5-adc", - .data = (const void *)&sama7g5_platform, + .data = &sama7g5_platform, }, { /* sentinel */ } -- 2.43.0