From patchwork Mon Jun 14 11:34:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 459847 Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp3201114jae; Mon, 14 Jun 2021 04:39:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwG4IomaSUpxbWOecH6UnnAp8va8H77Wk1ys/YbXSA43/WjFdjJG22FSMY7+x5vbxi2kxpY X-Received: by 2002:a17:906:e44:: with SMTP id q4mr14635776eji.120.1623670782476; Mon, 14 Jun 2021 04:39:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623670782; cv=none; d=google.com; s=arc-20160816; b=pNZ8oooZ+6/LPq5ebYfcHqic/SRURcg08wNQpHdhDBu5gZJu9V1irwosmvsY7xnIqs yHHnn5q8KK//xehWdl8hTZkzUI52ThtCbU4miSLNiLXu3mK8DgDvbw3XVcgXRICrOeVH M5Pix5xraE3fQeScBH2C10wQ4CtH61Xn9DFTlJIInJ8pgrxbN9bA2TbBvQBClChVCsx/ bDklAC68zUlR1PiDVApIPyA2FhVo3aGJJVt7R7LaPqs3tPH6IHVOt7leb1Hkrv+sSLrb ib3PW9SGgCGPVsopGsGEQlcyztmS0RHpHZeu3Mnf1GVGXo9DVD5wpp5JTpSSAeyi8mr4 u5sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=izl5WOuP7eaxpvnBASpfP9x6dyhvRuQPkeCWekXxhDs=; b=qNkFAw2UaAS/2XCU0W1H+LgSLFTGvUHma7ERRbSi1409tp8Z7IOhIzxvP/Hwlx6FUA 37uUCDS9d4ZsVLzp1duZ0Crr9O2m6iB3TP4yx5zM4U2SQ/abRKde9AhZZP9LfsH1ECCb G/GZJTMxTw8WZMZIvqO/iYk55y4HE6C4mKBwUG7bcGN54Lyat0l8zcEsJBtog/SExJW1 E7wrzwL0QYqzFjqykl+8hQQI+6z4dtcWWO4e7ACt8+0/MpmFbtAQLtsgGNUXISQJvKGM 1d/y19u7Ei7K9gFmIy3rTsi8Gb7GAXkoZgEbV0XogQgJH625ufr6uxkl1fwKOUzICIbw GtzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GBXCongJ; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z13si10875643ejb.275.2021.06.14.04.39.42; Mon, 14 Jun 2021 04:39:42 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GBXCongJ; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235876AbhFNLlj (ORCPT + 7 others); Mon, 14 Jun 2021 07:41:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:59760 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233249AbhFNLh0 (ORCPT ); Mon, 14 Jun 2021 07:37:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0D6B6611C1; Mon, 14 Jun 2021 11:33:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623670422; bh=uX4j8Em0DfN95DWXSZS5TrQWrJs4W3Wt3k4zYml5GE4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GBXCongJgimP2/ps4fwpZBjFJYOSiNyxtEYE6aNNFI8XmtG4MWfG6cQgpSQ2uSvrv Xc7+Ih9z9SUn+ly9ERkP6oxw1d6TD9sTpVJ2dw09tIL+FqTCYzhuswMTPmSZ+cmdbN AeUzn7zn5vm3vDlmyZnATtlMvA5ypVwSajNo2Qk9w/s7+rBbLcmhigcfzkPRIdNQ90 iBzt7cmoE7LVLbOB/m4FxQrxLC7yzWGzy9bRFE42b4SeQH1IqsRuoUe4ukRaGOF4lY 9514bRzpKv/W8SqiIhD2i4V1T76Gni4lrqIebavpQi/NflXC+SL6eNhI1Ci7z8nV8c S2PQ2NkfWaVpA== From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring Cc: Michael.Hennerich@analog.com, lars@metafoo.de, devicetree@vger.kernel.org, Nuno Sa , Jonathan Cameron Subject: [PATCH 09/17] staging:iio:adc:ad7280a: Trivial comment formatting cleanup Date: Mon, 14 Jun 2021 12:34:59 +0100 Message-Id: <20210614113507.897732-10-jic23@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210614113507.897732-1-jic23@kernel.org> References: <20210614113507.897732-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron IIO uses the /* * stuff * more stuff */ multi-line style, so use that here as well. Signed-off-by: Jonathan Cameron --- drivers/staging/iio/adc/ad7280a.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) -- 2.32.0 diff --git a/drivers/staging/iio/adc/ad7280a.c b/drivers/staging/iio/adc/ad7280a.c index 58bddd07df0c..b186dda03432 100644 --- a/drivers/staging/iio/adc/ad7280a.c +++ b/drivers/staging/iio/adc/ad7280a.c @@ -139,9 +139,10 @@ static unsigned int ad7280a_devaddr(unsigned int addr) ((addr & 0x10) >> 4); } -/* During a read a valid write is mandatory. - * So writing to the highest available address (Address 0x1F) - * and setting the address all parts bit to 0 is recommended +/* + * During a read a valid write is mandatory. + * So writing to the highest available address (Address 0x1F) and setting the + * address all parts bit to 0 is recommended. * So the TXVAL is AD7280A_DEVADDR_ALL + CRC */ #define AD7280A_READ_TXVAL 0xF800030A @@ -180,7 +181,7 @@ static unsigned char ad7280_calc_crc8(unsigned char *crc_tab, unsigned int val) crc = crc_tab[val >> 16 & 0xFF]; crc = crc_tab[crc ^ (val >> 8 & 0xFF)]; - return crc ^ (val & 0xFF); + return crc ^ (val & 0xFF); } static int ad7280_check_crc(struct ad7280_state *st, unsigned int val) @@ -193,12 +194,12 @@ static int ad7280_check_crc(struct ad7280_state *st, unsigned int val) return 0; } -/* After initiating a conversion sequence we need to wait until the - * conversion is done. The delay is typically in the range of 15..30 us - * however depending an the number of devices in the daisy chain and the - * number of averages taken, conversion delays and acquisition time options - * it may take up to 250us, in this case we better sleep instead of busy - * wait. +/* + * After initiating a conversion sequence we need to wait until the conversion + * is done. The delay is typically in the range of 15..30us however depending on + * the number of devices in the daisy chain, the number of averages taken, + * conversion delays and acquisition time options it may take up to 250us, in + * this case we better sleep instead of busy wait. */ static void ad7280_delay(struct ad7280_state *st)