Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1972286rdb; Sun, 21 Jan 2024 01:26:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IF05cOImahKhURKcGXGbRXeY0vEoamyvnDw6SSOWOpR/+9hNH1Eq8k8A/b8fRUHiaB4Dack X-Received: by 2002:a17:903:25d1:b0:1d7:14db:bc89 with SMTP id jc17-20020a17090325d100b001d714dbbc89mr2878650plb.5.1705829194219; Sun, 21 Jan 2024 01:26:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705829194; cv=pass; d=google.com; s=arc-20160816; b=SZB9YdLDgDTFcfY4PrM26En5GQlFz1Hs+P0mELc7km31lS+I6Zscu8IVAuUryRWmuQ XkrlMjnRIdtSJlkWSB7ehgTC0zAAcTcXUB10D7JnTXFtHDWyYCCN/88kPKVF9R9IG6Ud 20FTJp9RbjHtmm8302jqdkPE/q474BHHJGMVhfKV2/G6jZgRxi7XV8JM41EpCy5W7+L5 SgNSOduvZHRjdU2NkHX0csyCg1ih3jGV2jLMCnXLjsVrxwEMTMzKAKlDqeFlW+55tM0P 9YNX0m3R3Z+py3nvHmUPn+CuAVYGDJzNooKyRNPPG5j+tSRa/AmEaQgl4VbrKr27UBrD M7OA== 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=ViLFSGgTnFViD2oXyb+K2dtpJF8U2KZpqNpM8ttFUS8=; fh=Of1snGVVgFeuy+cVC35eOAhLrKONdRV/qEZ5cERgLuA=; b=YEy1uu6cW0UPfKwoVBuQu2Z0EIh7x5lGg0k6arXw66qOvsJY05A/AUUznpT2Ad9pOX VroXTw8abLNSZlvfQOgNUXoYP52yLCPahpz6WNWAiGmYwwCsD2xahG0eGHhbzDooYlne sGulUK3c2KolI3kaEQPQ4bt+8/Z7IYBIe7Dvw6XCW9KRv/PwxcFGYxuBM+XhzAATKZDF d99jS9w5GFogg9yH3U4ZTU+Uj++Vfaaupif87K5J4SJBxExMZNSL963420ikd7JZch/n g3UZVY9++nsuWFKhjrDeSHYxOeIMizc3XZ0ai2rwEXQFqvot6Z5ER0YmJqkTmfXE2Jav 7rEA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Ch+cFsQy; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-31981-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31981-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n10-20020a170902d2ca00b001d4dff2c4desi3001441plc.24.2024.01.21.01.26.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 01:26:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31981-linux.lists.archive=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=@infradead.org header.s=bombadil.20210309 header.b=Ch+cFsQy; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-31981-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31981-linux.lists.archive=gmail.com@vger.kernel.org" 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 B9BF6282267 for ; Sun, 21 Jan 2024 07:00:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 58C10364AD; Sun, 21 Jan 2024 07:00:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="Ch+cFsQy" 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.subspace.kernel.org (Postfix) with ESMTPS id EC946364A0; Sun, 21 Jan 2024 07:00:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705820425; cv=none; b=TOe1F39+YB3eV5tuFjNwj6sXX7NSXJ2PLIN+J/BKmg1cdzZeVj7RGtvN8kwa7azY2uL2tlp5fqVEscVkr11olsY0fHegO4imLimKcqlKmZuJWogyQyOWiON/cfCMFVlFnwcphrOggtwpXfM89ZPyToP7pM9aZkboHmvwQssjAYc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705820425; c=relaxed/simple; bh=we4FNiUjJnIGC37EiOVvIviIC5Y3lu2ss1MNi0OD9UE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=r3waG3kJkyVAbQUYg/keFFbZygrBj+467tcYC5y+dzAPbYI+8OU0gpX9UqzScnZ9bXS9uZIC8U3klAm2wyXcdIWX+QLEQqGJRMHgw0iaTgLy3LEasI/MfiAcg8C4puCC9j2VSIKDC3H4HCxmQf00r7Okd9mVLeHxbEPvuI6atyU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=Ch+cFsQy; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=ViLFSGgTnFViD2oXyb+K2dtpJF8U2KZpqNpM8ttFUS8=; b=Ch+cFsQyDfdV6LqLCWJi0LTWmK R8LNC0OQr/YBWelCwjBdoGYodvzLZ5ty2bcjy57ScLubAN/ewzBzxBeODg3R2GP04uWZ0vPP4DYvj zh+Ddn4uKHe5f/NDnUHsEhkgerMlATkghHGUAk/PYCRFd0TTrfCW0g0wl+lZdDtPfY/soIh76w2q2 NSRhbmZAvHNbJ5bfQ+AIyODQtvfwMTq/NRkADkNOmYQ2tsSbgw3zbslTQALrjQikhCT2k5KBuBURv g+ISCeJCumDCSSRVlLzDTfpMqeYAyJYFs43HZ/xxns2tEHf+3q69lVn0G26FUEBLleaXN5Mx6b2kB hc19k5NQ==; Received: from [50.53.50.0] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rRRoc-008zF0-1r; Sun, 21 Jan 2024 07:00:22 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Ludovic Desroches , Tudor Ambarus , linux-arm-kernel@lists.infradead.org, Vinod Koul , dmaengine@vger.kernel.org Subject: [PATCH] dmaengine: at_hdmac: fix some kernel-doc warnings Date: Sat, 20 Jan 2024 23:00:21 -0800 Message-ID: <20240121070021.25365-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Fix some kernel-doc format warnings: at_hdmac.c:243: warning: Excess struct member 'sg_len' description in 'at_desc' at_hdmac.c:252: warning: cannot understand function prototype: 'enum atc_status ' ez at_hdmac.c:351: warning: Excess struct member 'atdma_devtype' description in 'at_dma' at_hdmac.c:351: warning: Excess struct member 'ch_regs' description in 'at_dma' at_hdmac.c:664: warning: contents before sections Signed-off-by: Randy Dunlap Cc: Ludovic Desroches Cc: Tudor Ambarus Cc: linux-arm-kernel@lists.infradead.org Cc: Vinod Koul Cc: dmaengine@vger.kernel.org --- drivers/dma/at_hdmac.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff -- a/drivers/dma/at_hdmac.c b/drivers/dma/at_hdmac.c --- a/drivers/dma/at_hdmac.c +++ b/drivers/dma/at_hdmac.c @@ -222,7 +222,7 @@ struct atdma_sg { * @vd: pointer to the virtual dma descriptor. * @atchan: pointer to the atmel dma channel. * @total_len: total transaction byte count - * @sg_len: number of sg entries. + * @sglen: number of sg entries. * @sg: array of sgs. */ struct at_desc { @@ -245,7 +245,7 @@ struct at_desc { /*-- Channels --------------------------------------------------------*/ /** - * atc_status - information bits stored in channel status flag + * enum atc_status - information bits stored in channel status flag * * Manipulated with atomic operations. */ @@ -328,8 +328,7 @@ static inline u8 convert_buswidth(enum d /** * struct at_dma - internal representation of an Atmel HDMA Controller * @dma_device: dmaengine dma_device object members - * @atdma_devtype: identifier of DMA controller compatibility - * @ch_regs: memory mapped register base + * @regs: memory mapped register base * @clk: dma controller clock * @save_imr: interrupt mask register that is saved on suspend/resume cycle * @all_chan_mask: all channels availlable in a mask @@ -626,6 +625,9 @@ static inline u32 atc_calc_bytes_left(u3 /** * atc_get_llis_residue - Get residue for a hardware linked list transfer + * @atchan: pointer to an atmel hdmac channel. + * @desc: pointer to the descriptor for which the residue is calculated. + * @residue: residue to be set to dma_tx_state. * * Calculate the residue by removing the length of the Linked List Item (LLI) * already transferred from the total length. To get the current LLI we can use @@ -661,10 +663,8 @@ static inline u32 atc_calc_bytes_left(u3 * two DSCR values are different, we read again the CTRLA then the DSCR till two * consecutive read values from DSCR are equal or till the maximum trials is * reach. This algorithm is very unlikely not to find a stable value for DSCR. - * @atchan: pointer to an atmel hdmac channel. - * @desc: pointer to the descriptor for which the residue is calculated. - * @residue: residue to be set to dma_tx_state. - * Returns 0 on success, -errno otherwise. + * + * Returns: %0 on success, -errno otherwise. */ static int atc_get_llis_residue(struct at_dma_chan *atchan, struct at_desc *desc, u32 *residue) @@ -731,7 +731,8 @@ static int atc_get_llis_residue(struct a * @chan: DMA channel * @cookie: transaction identifier to check status of * @residue: residue to be updated. - * Return 0 on success, -errono otherwise. + * + * Return: %0 on success, -errno otherwise. */ static int atc_get_residue(struct dma_chan *chan, dma_cookie_t cookie, u32 *residue) @@ -1710,7 +1711,7 @@ static void atc_issue_pending(struct dma * atc_alloc_chan_resources - allocate resources for DMA channel * @chan: allocate descriptor resources for this channel * - * return - the number of allocated descriptors + * Return: the number of allocated descriptors */ static int atc_alloc_chan_resources(struct dma_chan *chan) {