From nobody Sun Oct 5 23:52:23 2025 Received: from smtp1.iitb.ac.in (smtpd9.iitb.ac.in [103.21.126.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1B9C721D3C9 for ; Mon, 28 Jul 2025 09:59:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.21.126.64 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753696786; cv=none; b=bTi4c+9YLWw5t6QrAdigrSnxdHP048rDvvoYryE07BtcYjHqd4MotDhWDhDgemmbWlj46zbqw5/hdf2TP5qUaCbb1hL17DI+mJnjpjLesFEpHRk4yLmpdQml1UDKrbqEKxpF4cjoxZTQ4Z5Ot3FW31WU0/hHEGiNo77iW6dFXGo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753696786; c=relaxed/simple; bh=CpIgJcNBH57ZIxVFm8Q8IGWglEPgaFmOCVA6ku4RpsY=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=J2Lxbv7LRY5bnn5Blq1G09aXjqJ2JA8AMyxkIG5D7kXsEqB6b6yQht0yU9caAcLjDz3oMcFHukd/PJZqWmgxocMN5cv5Yp71R81GUGRLNgXin45z3l/kQiUiR6ThIaYpdm6YMwVyMgTPSeDc+c523psXSR+HAYh41V5OX833NCY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ee.iitb.ac.in; spf=pass smtp.mailfrom=ee.iitb.ac.in; dkim=pass (1024-bit key) header.d=iitb.ac.in header.i=@iitb.ac.in header.b=cJ5ozXf6; arc=none smtp.client-ip=103.21.126.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ee.iitb.ac.in Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ee.iitb.ac.in Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=iitb.ac.in header.i=@iitb.ac.in header.b="cJ5ozXf6" Received: from ldns1.iitb.ac.in (ldns1.iitb.ac.in [10.200.12.1]) by smtp1.iitb.ac.in (Postfix) with SMTP id 92BCA1005C8D for ; Mon, 28 Jul 2025 15:29:37 +0530 (IST) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.iitb.ac.in 92BCA1005C8D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iitb.ac.in; s=mail; t=1753696777; bh=CpIgJcNBH57ZIxVFm8Q8IGWglEPgaFmOCVA6ku4RpsY=; h=Date:From:To:Cc:Subject:From; b=cJ5ozXf6nkIu3soufTZknNlwQDIx6pw0dWLGh7hZYGqo3MXJg7CtDNz5b4qWRpjg3 6yZpOcoZno5SkBXg4Gyhu/7SBQEQWhhSkcIbZJ09P7k1lr0//nYKfk/GIi1DXteBbY OFT1K7v6R0qN2WiWkk3abJFelFRMglI/ySE9caCw= Received: (qmail 17700 invoked by uid 510); 28 Jul 2025 15:29:37 +0530 X-Qmail-Scanner-Diagnostics: from 10.200.1.25 by ldns1 (envelope-from , uid 501) with qmail-scanner-2.11 spamassassin: 3.4.1. mhr: 1.0. {clamdscan: 0.101.4/26439} Clear:RC:1(10.200.1.25):SA:0(-6.0/7.0):. Processed in 2.540206 secs; 28 Jul 2025 15:29:37 +0530 X-Spam-Level: X-Spam-Pyzor: Reported 0 times. X-Envelope-From: akhilesh@ee.iitb.ac.in X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received: from unknown (HELO ldns1.iitb.ac.in) (10.200.1.25) by ldns1.iitb.ac.in with SMTP; 28 Jul 2025 15:29:34 +0530 Received: from bhairav.ee.iitb.ac.in (bhairav.ee.iitb.ac.in [10.107.1.1]) by ldns1.iitb.ac.in (Postfix) with ESMTP id 3386336003B; Mon, 28 Jul 2025 15:29:34 +0530 (IST) Received: from bhairav-test.ee.iitb.ac.in (bhairav.ee.iitb.ac.in [10.107.1.1]) (Authenticated sender: akhilesh) by bhairav.ee.iitb.ac.in (Postfix) with ESMTPSA id E1EAC1E81273; Mon, 28 Jul 2025 15:29:33 +0530 (IST) Date: Mon, 28 Jul 2025 15:29:28 +0530 From: Akhilesh Patil To: lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org, gregkh@linuxfoundation.org, marcelo.schmitt1@gmail.com, gshahrouzi@gmail.com, hridesh699@gmail.com, akhilesh@ee.iitb.ac.in Cc: linux-iio@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, akhileshpatilvnit@gmail.com, skhan@linuxfoundation.org Subject: [PATCH] staging: iio: ad5933: Fix implicit fall-through in switch() Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add default case in switch() codeblock in ad5933_read_raw(). Convert implicit error return due to switch fallthrough to explicit return to make intent clear. Follow kernel switch fall-thorugh guidelines at Documentation/process/deprecated.rst Signed-off-by: Akhilesh Patil --- Checked build for 6.16.0 kernel with ad5933 --- drivers/staging/iio/impedance-analyzer/ad5933.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/iio/impedance-analyzer/ad5933.c b/drivers/stag= ing/iio/impedance-analyzer/ad5933.c index 85a4223295cd..6547a259b8a0 100644 --- a/drivers/staging/iio/impedance-analyzer/ad5933.c +++ b/drivers/staging/iio/impedance-analyzer/ad5933.c @@ -533,9 +533,10 @@ static int ad5933_read_raw(struct iio_dev *indio_dev, *val =3D 1000; *val2 =3D 5; return IIO_VAL_FRACTIONAL_LOG2; + default: + return -EINVAL; } =20 - return -EINVAL; out: iio_device_release_direct(indio_dev); return ret; --=20 2.34.1