Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp572514lqs; Tue, 5 Mar 2024 09:50:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVwF3UPqhr8FaEbsEGT3AAlUH6r23cvcE3DQ3j4vox6lR4g17w5Axx6hxJySpqHT8Eo789Nf69jtQ3pUX+1IR29I7B+6BNZaMFy+GNoGw== X-Google-Smtp-Source: AGHT+IGZnyRYAPIQcw1OiMUwcwOn3dfW8NfkzgdmwizzNZ0jxTl6NEO4sYCViTk3JQdu7qwlIpSN X-Received: by 2002:a05:6808:2186:b0:3c1:e699:4cc0 with SMTP id be6-20020a056808218600b003c1e6994cc0mr3444661oib.7.1709661042862; Tue, 05 Mar 2024 09:50:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709661042; cv=pass; d=google.com; s=arc-20160816; b=s9/9AFaN0TXV80vvMGW7NsGE9PzcUC6jMkxggTM+0LQO8VrwDCsUAaEyc0PSmyfkPQ g4u5T80W5WGIvb3G3/my92uLlJl1mdHUZMhbeXWhxA9fdIpDT/aTKZsn+mm/P1PK9Aus N2w0QBlGfkBlYM414V5ni/ztF5EKR/g26KacC/Hlu7yoAMBPLO3sLNhMFTa25eQevKHJ kvts8PuBtumC8e3nQ6jkOgRYiijDjVHwI+cHsFYuZE54FySNokeNgEmRZJuv4kfCRMB2 oDUnN0wfv1kdvHBupq0hgWugWGoXWntNx1L8S5x+y/fQNh0CtT7MmIuKhIxPjhnge06w GiVQ== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=pxI36r/M7vp6wRDOsbAY0ZX0XRJxoEkKMXaC/m32ae8=; fh=OQmfJFm+L21ql+AkAWCw71qWK/LG+rpQTMmxPDxm9Rs=; b=PTn8glFKxH7iCB/PDPzpEiFLCBBIyBK6XnmvIemT0qfIJMfyb7aaBEkWZkcksCzb+g gk6bFhPWwpL2RJDtPZvoxt/9YYdI5XBgTVJZPP20IS7ZWxfqVa+5eE4pmuNSyd5IFpUx dWwYwHnJT/2300g0qH4NFw4x5URxjF5ztrfJiiqsTAkMDwZeuvj4aDOu5c4b+PnYkip6 jnPG3O92Anh0zfGQzN2fiX1NNs5Vyr2jp3EOHpedRz9cwoSOoiv5HmeTt6QGxPpqEZxh /TboddPp8me9DZDPbT9lmIrQTAEKskifYbDJvBZr8Wcu1LnWqvoSwEbyfLCkJIHf+xjA jpZg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YjRofGoI; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-92786-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92786-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t7-20020a05622a01c700b0042dd935f0a2si2177974qtw.670.2024.03.05.09.50.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 09:50:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92786-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=@intel.com header.s=Intel header.b=YjRofGoI; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-92786-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92786-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 059911C2583E for ; Tue, 5 Mar 2024 17:50:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E119E1B59A; Tue, 5 Mar 2024 17:49:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="YjRofGoI" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (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 8E10217BA7; Tue, 5 Mar 2024 17:49:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709660984; cv=none; b=RdDNWz5Jh+zxZeC8NP3MAHO0WVs/tu3WeVYI70+cMGpXURT0QnpyimsJx4HMp6fwaduiVoAvryVOfsjUwNjLupRrb367PL2Y3E/1xiJbivx/h/7RmzkBBEVGIRp3+zBs9LwuLAhUwgDSM/18AbAsDiJ8e8Buki5c8EwmUnVb434= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709660984; c=relaxed/simple; bh=q66Wb9ahMc8HcoBEjdZcQx4TA4GGv5WTs+e4hGRLHx0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=t/lpb2Z6AYtpltlQG6TgMgwWC6fYDM3FjCXz2pPTgK8ZMttneXWxbBSBdub5c68wJy8yjC547dE+fr3aZ4l6pIaSMR6Vwje1Qttu3E8sNjrBIoOYDRSWd6+Da9IZOFs4ENVVNcD/bGFppE7xa4Wq76vRWr8mtotnHzvUzE72xlc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=YjRofGoI; arc=none smtp.client-ip=192.198.163.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709660982; x=1741196982; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=q66Wb9ahMc8HcoBEjdZcQx4TA4GGv5WTs+e4hGRLHx0=; b=YjRofGoIkEyuWAZ64qfiigWdeB6VCTWr6Dg/LoZp71B9hS7aY5rrXLKK z3VmTxqLFeHhaDextH6mKFZgsmKHv6TOohidyu2iOT/BFoCWXOPH4TaL7 s+NLip7FX6O1LPk9PbKTPbMie/exV4GBiInL9aSd26XbX58ZXGNmNCh1n H3Nsh2DQUm4VLq57XWGyTwprhIbVgP/HYYyizJ5n+nWYtkyU+d0unWt0a Y53IrEB9ulZF2oOtCCTDEiF65DU34+Nft6GEq0XEJFs50u1LhNV9QLZO2 /YlbcDs5xOM57phK4sZN9splgRxMFDdUM3mTLIf+crqSFgYBC/DX5B/uy A==; X-IronPort-AV: E=McAfee;i="6600,9927,11004"; a="4092456" X-IronPort-AV: E=Sophos;i="6.06,206,1705392000"; d="scan'208";a="4092456" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Mar 2024 09:49:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11004"; a="937042798" X-IronPort-AV: E=Sophos;i="6.06,206,1705392000"; d="scan'208";a="937042798" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 05 Mar 2024 09:49:38 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 6BAC374C; Tue, 5 Mar 2024 19:49:35 +0200 (EET) From: Andy Shevchenko To: Andy Shevchenko , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Sean Young , Mauro Carvalho Chehab , Andi Shyti Subject: [PATCH v1 5/5] media: ir-spi: Unify indentation and comment style Date: Tue, 5 Mar 2024 19:48:30 +0200 Message-ID: <20240305174933.1370708-6-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 In-Reply-To: <20240305174933.1370708-1-andriy.shevchenko@linux.intel.com> References: <20240305174933.1370708-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Unify the indentation and multi-line comment style. Signed-off-by: Andy Shevchenko --- drivers/media/rc/ir-spi.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/media/rc/ir-spi.c b/drivers/media/rc/ir-spi.c index 801de3d108cc..8fc8e496e6aa 100644 --- a/drivers/media/rc/ir-spi.c +++ b/drivers/media/rc/ir-spi.c @@ -36,8 +36,7 @@ struct ir_spi_data { struct regulator *regulator; }; -static int ir_spi_tx(struct rc_dev *dev, - unsigned int *buffer, unsigned int count) +static int ir_spi_tx(struct rc_dev *dev, unsigned int *buffer, unsigned int count) { int i; int ret; @@ -57,7 +56,7 @@ static int ir_spi_tx(struct rc_dev *dev, return -EINVAL; /* - * the first value in buffer is a pulse, so that 0, 2, 4, ... + * The first value in buffer is a pulse, so that 0, 2, 4, ... * contain a pulse duration. On the contrary, 1, 3, 5, ... * contain a space duration. */ @@ -146,9 +145,9 @@ static int ir_spi_probe(struct spi_device *spi) if (ret) dc = 50; - /* ir_spi_set_duty_cycle cannot fail, - * it returns int to be compatible with the - * rc->s_tx_duty_cycle function + /* + * ir_spi_set_duty_cycle() cannot fail, it returns int + * to be compatible with the rc->s_tx_duty_cycle function. */ ir_spi_set_duty_cycle(idata->rc, dc); @@ -177,7 +176,6 @@ static struct spi_driver ir_spi_driver = { .of_match_table = ir_spi_of_match, }, }; - module_spi_driver(ir_spi_driver); MODULE_AUTHOR("Andi Shyti "); -- 2.43.0.rc1.1.gbec44491f096