From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755252AbdC1Sa2 (ORCPT ); Tue, 28 Mar 2017 14:30:28 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:34161 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753517AbdC1Sa1 (ORCPT ); Tue, 28 Mar 2017 14:30:27 -0400 From: Tamara Diaconita X-Google-Original-From: Tamara Diaconita To: lgirdwood@gmail.com, broonie@kernel.org, linux-kernel@vger.kernel.org, outreachy-kernel@googlegroups.com, corbet@lwn.net Cc: Tamara Diaconita Subject: [PATCH] Regulator: core.c: Fix kerneldoc comments Date: Tue, 28 Mar 2017 21:30:21 +0300 Message-Id: <20170328183021.2683-1-diaconita.tamara@gmail.com> X-Mailer: git-send-email 2.9.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove the description for the non-existing 'ret' to fix the build warning: ./drivers/regulator/core.c:1467: warning: Excess function parameter 'ret' description in 'regulator_dev_lookup'. The description found for the return value is: @ret: 0 on success, -ENODEV if lookup fails permanently, -EPROBE_DEFER if lookup could succeed in the future. Signed-off-by: Tamara Diaconita --- drivers/regulator/core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 53d4fc7..219b665 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -1451,8 +1451,6 @@ static struct regulator_dev *regulator_lookup_by_name(const char *name) * regulator_dev_lookup - lookup a regulator device. * @dev: device for regulator "consumer". * @supply: Supply name or regulator ID. - * @ret: 0 on success, -ENODEV if lookup fails permanently, -EPROBE_DEFER if - * lookup could succeed in the future. * * If successful, returns a struct regulator_dev that corresponds to the name * @supply and with the embedded struct device refcount incremented by one. -- 2.9.3