From patchwork Thu Feb 15 22:52:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Moritz C. Weber" X-Patchwork-Id: 201815 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp168513dyb; Thu, 15 Feb 2024 14:53:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV6hGSRIIe/GVmraW7CTnqx0K/L3x8qeq3dmTJCRtBdmCflIvMIVxPtXbCX7M2RL9H3fZu5cZXVooPGYMWlUSXgZ+ueDw== X-Google-Smtp-Source: AGHT+IF6L+daz80Brhrdliy3GOvrTQWZrRO78tsHe1U0l8/iMaIID4yG8ExOMXz+n2F7+h6DAw2b X-Received: by 2002:a05:6a21:8ccc:b0:1a0:5885:5f9e with SMTP id ta12-20020a056a218ccc00b001a058855f9emr4066003pzb.50.1708037612917; Thu, 15 Feb 2024 14:53:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708037612; cv=pass; d=google.com; s=arc-20160816; b=yI24zfl8v7OJralHmARvGKcmatQhRUkeMSyNILWQ8NAbQM4zSNsZ5xQKs3TjP+MxhQ QNiHaZKPuyaR2Awp5WG1rt77+y2dd5bWu5GNxXNtbSRDbZxBJEoI5ranWfWB/r2i54yv l5JQbLwS/v6rP115JmtjwE1xQ6wIhnhrzNxveUP+UjgZPUiJi1Z0685LTxlR6tiaYPJL fr9cJY6xWhZme0JEy6cmy2+geCKb/g1WRLFOUAGbizVl62qlPPs1ZxGZxezfpQ01ZTu6 Qdd0ETiIninKd2eKRoOhfTUjE3W7yyotfIyi2YZU3YnFDVDvVRGoh/Dmj0Heb6iBukzU QJ5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=dM/iULill3Uj1lqLW3ClBj2hmpKY1OGRqTHuq9SM0pI=; fh=xta/ApbBQOWBuJrVzQkBQCo1TC9xJSBuv3h30fB2F38=; b=EAF84qKkRGpl/0knaQB3uDWlNRxrNPaeIhu75c+qobB47aGZvsX9KRxeXtj4/8dxyr /szJzFi2aaLrBI67CbcFX0A1SRPqEhC1ExgFx6cj1+Ow/LhaxDGFujQeXz28A2btCN/T 8Mo9UQ2Lmtu9e3nGmX7U7fx3BSpoc0HyvHI0S6qb+fjfXZGMPFXf5UgplV6q0085ENkr G0XcUXINiAREFAQ+iWWW60ilyQGWZxqfoetGlttBShMz267dHZejiL//Kf+T4c/iBU5m EjkmbQV+3FJST1puXllKDEnGjCH+XT/SzendSFKo7NoVJDJmFaGewkCRqskRCsl1/v5j AwAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BWDPUI76; 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-67788-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67788-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j64-20020a638043000000b005d798062b8csi1860508pgd.499.2024.02.15.14.53.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 14:53:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67788-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BWDPUI76; 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-67788-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67788-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B39BA284A21 for ; Thu, 15 Feb 2024 22:53:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C0A414535B; Thu, 15 Feb 2024 22:53:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BWDPUI76" Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.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 F036313DBA4 for ; Thu, 15 Feb 2024 22:53:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708037593; cv=none; b=NgoydLpNssak3ck9i1ktyVF7e2Q3m6Z/+gbYJntXVGaXNnZX7Czd3Ad8ie4lwFOoCjwCG/u/GHXc9GTPCWm9rsoB+QMaORHVfaG+coWatJ2ROaAffEnV5nzYXUCX58OFrt8FFfD3SvknDC0F8X3OrLPkxq28J1Ezn2yflHgIIEM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708037593; c=relaxed/simple; bh=2FVu6yXE7U52ivGAjAAmrkoj6QOniMtDTmis6EZTPqk=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=WDLRDDuLRaTi6gx3B1QxC/6NDqkK7Yjqxc0go8RQpJoxYi5U1b9x+TmxnpywwfQkGa4sRdxEoMjlQylL7oCMWmbU6Y/JtiwXGFx59Zdj+ch9nRYxLynVdto8Qb7jdreUIrJc3Jo3nlM7yJmUdSI317w3eOsScAjMabA6CYv4epQ= 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=BWDPUI76; arc=none smtp.client-ip=209.85.208.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 Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-563b49a0f44so1819946a12.0 for ; Thu, 15 Feb 2024 14:53:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708037590; x=1708642390; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=dM/iULill3Uj1lqLW3ClBj2hmpKY1OGRqTHuq9SM0pI=; b=BWDPUI761uEVi/IbW1IVGWVCU8g7Go4vM06p9/RqZvQ7FtrceMYVbvu1gFglsQSyLX HiQGfAT+sOlgTaUU6yGW1bjjHR9ZnScsyKTKJ70bwaW6+W5ttgGWGNgXjovhig+hrR89 pu1airmC/WKTUPRbGJzkVERB4w1/TRLQ6PtSPK9cwSAAmAw2Q5JkTGs2g4+s2++h2Xbv 226EAZReGPz0N1zoEdGqpzJl0ih8iFBHtktSxruvJfHnKAkoDGhWt48mY/jAauQ2LF/c TMW4DAHNSMBXhhkNwPz2yJVv2vzb+gLWdf/oXDTXmTfB/YsgOGYYrfA3V9yzec7n9YPD QoVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708037590; x=1708642390; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dM/iULill3Uj1lqLW3ClBj2hmpKY1OGRqTHuq9SM0pI=; b=XWUwqIxGR8ItFQ1HSlYW4lVOkBme4fDE4VdhmjAu8HhTJCtdDRasUlV5zfSeB46IAk 6U6kptw4DSlq3RCe0mYVfAHyUQ57afuKeRotiLP5W0YBaQRKQbbzlTwhRC9XC6QXW2z3 W1xel8oP8A39OOfwArCoZK1CopLIm0jW+dKcx950M9jwvIWxQcSeQq3idncTkqSV1GXb zsJCZSGg82ph0LJYo6/t6995z/cDWpy4aWAF+ssonp1fOjRIb45nKLPLGhPqC68gu5yJ jzRIoKVqPMuryB/ssfE1ZNY/v4VIt5SR4gxjcnVQMoR/9vyBL6qNLQLZ9A1XkzcJGIkJ o3UA== X-Forwarded-Encrypted: i=1; AJvYcCW6bx1AA5tdwKMJ0E0z6/9NcdqoxKZFaIs8CJBQPYNiUPQjilt4ysdpk6BjCdodPyyMzRIT5ID5REzqxa8ZPoH0FU4rrjMae0/ujfqU X-Gm-Message-State: AOJu0YynGXrIVSazF0pkcWKswId8l89ehtZMRYSqztv/iUlEjzihwEcO njjLBvSO7CBNfsbRCRfeN7biUYfM5p/DJdyzy4NYmd9uBM/kUvGE X-Received: by 2002:a17:907:86a4:b0:a3b:ad02:98b1 with SMTP id qa36-20020a17090786a400b00a3bad0298b1mr6506310ejc.10.1708037590040; Thu, 15 Feb 2024 14:53:10 -0800 (PST) Received: from pinguine.lan (ip-176-198-146-182.um43.pools.vodafone-ip.de. [176.198.146.182]) by smtp.gmail.com with ESMTPSA id s6-20020a17090699c600b00a3d88bdf5aasm966467ejn.103.2024.02.15.14.53.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 14:53:09 -0800 (PST) From: "Moritz C. Weber" To: florian.fainelli@broadcom.com Cc: linux-staging@lists.linux.dev, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, "Moritz C. Weber" Subject: [PATCH 2/3] Staging: vc04_services: bcm2835-camera: fixed several brace coding style checks Date: Thu, 15 Feb 2024 23:52:49 +0100 Message-Id: <20240215225249.11010-1-mo.c.weber@gmail.com> X-Mailer: git-send-email 2.30.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791004622127871161 X-GMAIL-MSGID: 1791007248138778522 Fixed coding style checks raised by checkpatch Signed-off-by: Moritz C. Weber --- .../vc04_services/bcm2835-camera/controls.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/staging/vc04_services/bcm2835-camera/controls.c b/drivers/staging/vc04_services/bcm2835-camera/controls.c index 6bce45925..e670226f1 100644 --- a/drivers/staging/vc04_services/bcm2835-camera/controls.c +++ b/drivers/staging/vc04_services/bcm2835-camera/controls.c @@ -533,17 +533,15 @@ static int ctrl_set_image_effect(struct bcm2835_mmal_dev *dev, control = &dev->component[COMP_CAMERA]->control; - ret = vchiq_mmal_port_parameter_set( - dev->instance, control, - MMAL_PARAMETER_IMAGE_EFFECT_PARAMETERS, - &imagefx, sizeof(imagefx)); + ret = vchiq_mmal_port_parameter_set(dev->instance, control, + MMAL_PARAMETER_IMAGE_EFFECT_PARAMETERS, + &imagefx, sizeof(imagefx)); if (ret) goto exit; - ret = vchiq_mmal_port_parameter_set( - dev->instance, control, - MMAL_PARAMETER_COLOUR_EFFECT, - &dev->colourfx, sizeof(dev->colourfx)); + ret = vchiq_mmal_port_parameter_set(dev->instance, control, + MMAL_PARAMETER_COLOUR_EFFECT, + &dev->colourfx, sizeof(dev->colourfx)); } exit: From patchwork Thu Feb 15 22:53:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Moritz C. Weber" X-Patchwork-Id: 201816 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp168851dyb; Thu, 15 Feb 2024 14:54:23 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWbknKM0rIVNhiJYVLJVc//dJhkNIcCm6WEZXhvWeA2DJ0ibLQ0a2Cxv4TKGYOXUAo4FIP1il/p92z+EGGntGnyQKre7A== X-Google-Smtp-Source: AGHT+IEo6pa3Ur/0U/kxv2WU81JGtGdxMrwbsMzwHydpxWEEEwtyP/azt2n5RpQrT6wsRjlfTFW4 X-Received: by 2002:a17:906:f201:b0:a3d:3aee:a854 with SMTP id gt1-20020a170906f20100b00a3d3aeea854mr1996018ejb.28.1708037663179; Thu, 15 Feb 2024 14:54:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708037663; cv=pass; d=google.com; s=arc-20160816; b=HcN3eXgH4Xr24N0Gf4BVut+UXYGKCETd9UZIw9Lx5b9y5ZIEouzbwSQEjelNwhXDoh /oL2xOgqO/hDOqTC8vImcXshs0U75tD6qs1A/pgxh8roQ+R+qYQbAEnnR3hXfXedJmp+ +noyVuSlsZptKV3Rd4Fsxgh4GFZJNAPj9T6P4/kVd/63Q6Y/aYR4PRu/b+q7yvkl1RJ2 hfsClTJOWuF4oniYQ6tBLKj5taLaEJI3FduXpAmst4JrC4WelN0MFJ4DYiOIqEQZtAzb pWrTau/8DSsOVvl03jJyGLuLMgny+QQlt8JqU6UW3pJcquJnUv30eCdSo7SV8TAguVdp fjNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=B8uMPEt1VqqPCM4teLHLJiETOk2ZEgqVh3I3k6LiZj8=; fh=jJePxtaEZJyKdWrXPC9wNjbgSvLaoBEwDvDniUF7Kkw=; b=lMIwgP0ZDiBhjR2G4vI2eLR95M5/2+l1cZ5JFtgfjgxyMvYrExSxEiLfd2K6YBUz0p kcNrOk/KLDWPjrg5AEUvNARf/BdPA9gSBh74QKJYCPGH/79rXLrM4ad0By3TrvPRmCjI AEf3l9X1xppqGrkvelB5LGl55eTWTogtk+jJdUX23pmCOGRmlGUKeUtr21dCx7zNCF+l prLSO7XrXcv/QyZsDPMt0kFRlhiQDXu0WfCjvH8jiw9W4jaXh6pOgq9atnvmzaqBfXRS I45f5gJARbWgtxq7p+wIt7KhaLWwv72WZp2bwpcVi6cipgtr5RjUELNPbj3cQXfS1WGw DiRQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hrBMMaHN; 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-67791-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67791-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id sh31-20020a1709076e9f00b00a35f9dd8eb2si1029863ejc.735.2024.02.15.14.54.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 14:54:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67791-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hrBMMaHN; 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-67791-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67791-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9A0EF1F227BD for ; Thu, 15 Feb 2024 22:54:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 75921145346; Thu, 15 Feb 2024 22:53:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hrBMMaHN" Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 0ADD513DBB3 for ; Thu, 15 Feb 2024 22:53:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708037635; cv=none; b=E3KQCar9gJdgy2W2Vt8j/7XXYa46c+PcprstUHFq3YuNBLtCnbsJsb0Q0rHUMevAA4M90rwHvlssigFsQydcRryMVu0X/1kymjx2wQQK+wttN2k/GTn2iMUoeQt8B8KZP6V63wUfsjHJj6xHUYA89HU+rvve6rYQUYWFSsDh8Po= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708037635; c=relaxed/simple; bh=XnFYaR+j8cXDRfdSASbIWHQxzHD5XY3BItp+mlM97jE=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=SBc3t4vxoHeCm1DK5k+p1gS+Gpcr+eyfTm9CxAQ/cdGT8hGHCbQRbFNMvU+Ap6IyELV4MzlVRsOk5XjesUAenGtFPqYBRay+gbqqod5G50pTuSsiedZLLpiifFsg8s/qo+dSx/wmMXiy68BGLQfJZtM+/KTJon6d1ZRHryg3gfM= 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=hrBMMaHN; arc=none smtp.client-ip=209.85.208.45 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-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-55f279dca99so2383982a12.3 for ; Thu, 15 Feb 2024 14:53:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708037632; x=1708642432; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=B8uMPEt1VqqPCM4teLHLJiETOk2ZEgqVh3I3k6LiZj8=; b=hrBMMaHNVM2CD5lFrDiTSUsK1KeyTbFnZfuVjDNw6M9p9ufDZaK65iRpIgFCRINNiK qjvPkuffoOkBHEsquLGK/YNZSpqz7n8L5F8BDr68Qm/2xlJ5DL2jZjNqaqWjAgtD6W6+ lf738yqD+oeMrEwNPCBJ/DOFzdrqx2caO4JZ0/yD0dz5IfWd+5NYyA6wRubfjqENhKTh aASXlRaVZ5p2rr3/wGZO+mcgL9Lx9jSrTv+gYvN25EF6RFqQJqnprNIz9IgvRfwD/5Al y6zH7I+ORvipiYNkF7YEhRLfcTxSw+RECgEf+YzkyogtgP1ICV+zretPPPIqm9qch+JR Smjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708037632; x=1708642432; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=B8uMPEt1VqqPCM4teLHLJiETOk2ZEgqVh3I3k6LiZj8=; b=praK8HE9Nltr/x7ZOdzPXh4sX1EF9B0JHRxPzIF87Xy6VThK3Np4hfihu1f4VQfMZQ TI2Se4rEEkTvyABiqJJqldFHx9XHWM4WRLFZFr9gh0KKycfZfWl9/B93s4hS14te/QDK OpnEV37yVJWZ1fVpl2dDuwAn30/qvx7llOOXmOwD2RPkTNSrwkbBo919zi+kR/vYBmEH 7wnRyP2wRtrxksvHXAmI4k6KaQbXdqzwAPuYGcQQPqnh7R6HsxflSn+JwGw0PDKKYS80 ZRimxF/BlTCsJ7dOrkQuw62v0BUFnoCQAYkGTI28KakJbWBdAEPj6VXlo2DLAKs2x6D0 4ZIg== X-Forwarded-Encrypted: i=1; AJvYcCUqfZxpcJ24zjT/DBWSxoCtLCGqh7pKPP0KmWZr1SnPTGWYwbiYZtEj4riixIR0A+BDP1zTf2vEtiM8RKwahZzDUsIra3w58OD+2NEh X-Gm-Message-State: AOJu0YyvKXKdaEhsiKjKivQ6X9CORGkE31jr0Ci89J2OfjR6cHyqi9hS xHs3mHZRX/i9LejVlLzQZgULjqbkmCsdNXiIs2K0/1QioxjqnhIb X-Received: by 2002:aa7:c149:0:b0:563:d042:4bdf with SMTP id r9-20020aa7c149000000b00563d0424bdfmr1041581edp.0.1708037631968; Thu, 15 Feb 2024 14:53:51 -0800 (PST) Received: from pinguine.lan (ip-176-198-146-182.um43.pools.vodafone-ip.de. [176.198.146.182]) by smtp.gmail.com with ESMTPSA id p3-20020a05640243c300b00563c22abac2sm650782edc.61.2024.02.15.14.53.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 14:53:51 -0800 (PST) From: "Moritz C. Weber" To: florian.fainelli@broadcom.com Cc: linux-staging@lists.linux.dev, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, "Moritz C. Weber" Subject: [PATCH 3/3] Staging: vc04_services: interface: vchiq_arm: fixed several brace coding style checks/warnings Date: Thu, 15 Feb 2024 23:53:28 +0100 Message-Id: <20240215225328.11141-1-mo.c.weber@gmail.com> X-Mailer: git-send-email 2.30.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791007300567376345 X-GMAIL-MSGID: 1791007300567376345 Fixed code style checks raised by checkpatch Signed-off-by: Moritz C. Weber --- .../staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 6 +++--- .../vc04_services/interface/vchiq_arm/vchiq_core.c | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c index 1579bd4e5..c59bea191 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c @@ -432,9 +432,9 @@ free_pagelist(struct vchiq_instance *instance, struct vchiq_pagelist_info *pagel head_bytes = actual; memcpy_to_page(pages[0], - pagelist->offset, - fragments, - head_bytes); + pagelist->offset, + fragments, + head_bytes); } if ((actual >= 0) && (head_bytes < actual) && (tail_bytes != 0)) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c index 76c277781..5213f7c55 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c @@ -230,6 +230,7 @@ struct vchiq_service *handle_to_service(struct vchiq_instance *instance, unsigne return rcu_dereference(instance->state->services[idx]); } + struct vchiq_service * find_service_by_handle(struct vchiq_instance *instance, unsigned int handle) { @@ -1192,7 +1193,6 @@ queue_message_sync(struct vchiq_state *state, struct vchiq_service *service, header->size = size; header->msgid = msgid; - svc_fourcc = service ? service->base.fourcc : VCHIQ_MAKE_FOURCC('?', '?', '?', '?'); @@ -1618,7 +1618,6 @@ parse_message(struct vchiq_state *state, struct vchiq_header *header) break; } - svc_fourcc = service ? service->base.fourcc : VCHIQ_MAKE_FOURCC('?', '?', '?', '?'); @@ -1842,8 +1841,8 @@ parse_rx_slots(struct vchiq_state *state) int rx_index; WARN_ON(state->rx_pos & VCHIQ_SLOT_MASK); - rx_index = remote->slot_queue[ - SLOT_QUEUE_INDEX_FROM_POS_MASKED(state->rx_pos)]; + rx_index = + remote->slot_queue[SLOT_QUEUE_INDEX_FROM_POS_MASKED(state->rx_pos)]; state->rx_data = (char *)SLOT_DATA_FROM_INDEX(state, rx_index); state->rx_info = SLOT_INFO_FROM_INDEX(state, rx_index); @@ -2177,6 +2176,7 @@ vchiq_init_state(struct vchiq_state *state, struct vchiq_slot_zero *slot_zero, s for (i = 0; i < VCHIQ_MAX_SERVICES; i++) { struct vchiq_service_quota *quota = &state->service_quotas[i]; + init_completion("a->quota_event); }