From patchwork Tue May 7 16:27:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 13657463 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 9DCCFC25B4F for ; Tue, 7 May 2024 16:27:49 +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=DOhoLbbLSacaop6Yur4t6X8Amzgi/yV85uJqpgy474M=; b=b0B0KMWmHCg3JB ARRf5i68eGbhH43EDtSui7pibEwgSTdaY6ANoYAjADjj79n0Sk+cjgfqGX2W5ccH+ohTYgr3Wqtmg +vhr/I0O4aTl3N3JPR6aNtGWaXzDbFDbbKCX2f/ZpiMhvAGb2N6b5ASMfM2oQiPeNef43w3ip24Qe 6knzeThJsn/4QuWN/2bGNf1pKqzjyegHpMTlT+lEATMfqCWE/EP6PUXS8XNQPg0NNIROJawgzCBTj kBf0U91uzkJUQF3h6WoUxsVipfp2MLUcL79GScMp6tO1Duc37iMvZuT3DX/fLKTdjAPxK1s/RYGEo g/HxHJPnIdEiZH11a2WA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4NfF-0000000Bxr6-3KA5; Tue, 07 May 2024 16:27:37 +0000 Received: from mail-ua1-f46.google.com ([209.85.222.46]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4New-0000000BxXC-2q4A for linux-arm-kernel@lists.infradead.org; Tue, 07 May 2024 16:27:23 +0000 Received: by mail-ua1-f46.google.com with SMTP id a1e0cc1a2514c-7f169d3ef53so1522830241.1 for ; Tue, 07 May 2024 09:27:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1715099236; x=1715704036; 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=bajBIKBKiGkzVrECr+DrCDdr2oyOzpQYYR0WAIoyaos=; b=KGfal2zbnys4FdaSJX5Jzj2EMBCwBxQpfy2m3MTIU19NblfEYj9uRosmuu97facQbL 63dg0Kxi0VV0DBOUm+s8vnKttvIleF7M2jIfWocT4Akm2LxzIZBj7Y9E8FLB7dA/3Lwt 15lEESt6dlCF1AZB3JW+W8/lqRzhpc6L3+oTs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715099236; x=1715704036; 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=bajBIKBKiGkzVrECr+DrCDdr2oyOzpQYYR0WAIoyaos=; b=WY9F9KSvfKoUUKkifwwNZ71+YdRmK1d2+WOllmTDHqCbFSewPvPf1tmb3SXbSDfZec AyKRYaFgXZoxbXbPvOMW9xj6Iz7PDgm++e2ibG8i63Hicn90itDTGGbKUn5OGNpXixGP eN0vNG7m7pZPln7HXH0otEOfdQzJw9RU5yTHMMpHcTBh41PLHFsilYgaobuOJ1Uhebt8 PA8qBnx7iWO4kMQsXA4KLjb0flS6TQzkiR1LGlF/FB23giejWXNIHeIZNL27uTdXaf67 ge6ZDbp+ve27cjwWUklJuUIRrUa7H3Yxj158BJ7a1auFzMDATo9VcHUFcscVDTy2uUgm N0gg== X-Forwarded-Encrypted: i=1; AJvYcCVXOaHdnXQQDJxT9tyfa7jXe5e3hm2glOqiQ64pG0JHtjsfp7iq9yMHMQpMODSCdyT2PiA54wlcgvdUA4i8e0j4zj4cqStCttTKa4OWDE/l0CVBCak= X-Gm-Message-State: AOJu0YzvBL/IAkJmfkwKA48wC8one/mnqsoepz0JhbWMwf7c7ajfLf83 1IS3CyqwYB3jiX/+5wcCFmcLxL+qv8npHubiow7e9qHTgcVjkjHcpAJ7UkBGfw== X-Google-Smtp-Source: AGHT+IF792y8yHb1G1T8p5qXRpEfx35eaFsBGY9qOmU3ppGSWJfi2EDsEDzymoanJSEvwZpNFlF1oA== X-Received: by 2002:a05:6122:2a02:b0:4d3:4ac2:29f4 with SMTP id 71dfb90a1353d-4df692a6b65mr38747e0c.2.1715099235965; Tue, 07 May 2024 09:27:15 -0700 (PDT) Received: from denia.c.googlers.com (114.152.245.35.bc.googleusercontent.com. [35.245.152.114]) by smtp.gmail.com with ESMTPSA id hf23-20020a05622a609700b0043d1fc9b7d9sm4160597qtb.48.2024.05.07.09.27.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 09:27:15 -0700 (PDT) From: Ricardo Ribalda Date: Tue, 07 May 2024 16:27:12 +0000 Subject: [PATCH v2 07/18] media: siano: Remove unused structures MIME-Version: 1.0 Message-Id: <20240507-cocci-flexarray-v2-7-7aea262cf065@chromium.org> References: <20240507-cocci-flexarray-v2-0-7aea262cf065@chromium.org> In-Reply-To: <20240507-cocci-flexarray-v2-0-7aea262cf065@chromium.org> To: Michael Tretter , Pengutronix Kernel Team , Mauro Carvalho Chehab , Laurent Pinchart , Michal Simek , Andy Walls , Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue , Bjorn Andersson , Konrad Dybcio Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, Hans Verkuil , Ricardo Ribalda X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240507_092718_821232_80D7E7E3 X-CRM114-Status: GOOD ( 11.97 ) 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 These structs are not used in the code, remove them. This fixes the following cocci warning: drivers/media/common/siano/smscoreapi.h:1049:4-8: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) drivers/media/common/siano/smscoreapi.h:1055:4-8: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) Signed-off-by: Ricardo Ribalda --- drivers/media/common/siano/smscoreapi.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/media/common/siano/smscoreapi.h b/drivers/media/common/siano/smscoreapi.h index 46dc74ac9318..bc61bc8b9ea9 100644 --- a/drivers/media/common/siano/smscoreapi.h +++ b/drivers/media/common/siano/smscoreapi.h @@ -1042,20 +1042,6 @@ struct sms_srvm_signal_status { u32 request_id; }; -struct sms_i2c_req { - u32 device_address; /* I2c device address */ - u32 write_count; /* number of bytes to write */ - u32 read_count; /* number of bytes to read */ - u8 Data[1]; -}; - -struct sms_i2c_res { - u32 status; /* non-zero value in case of failure */ - u32 read_count; /* number of bytes read */ - u8 Data[1]; -}; - - struct smscore_config_gpio { #define SMS_GPIO_DIRECTION_INPUT 0 #define SMS_GPIO_DIRECTION_OUTPUT 1