Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp340722pxf; Thu, 1 Apr 2021 02:33:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyw5gbsXXF1z2nvVW4vCT7/OaK5jSeWbG03ZDp/O09PKx8NxZsR0r3NCMyfCUKxGpB0c9pn X-Received: by 2002:aa7:ce1a:: with SMTP id d26mr8692215edv.206.1617269579938; Thu, 01 Apr 2021 02:32:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617269579; cv=none; d=google.com; s=arc-20160816; b=SLMJFKvoLyXUJXqezQzkKhCM4up7zLZfV25KsbCSPzSK0O40zS2nFPZnSHTxbB0KQN VMRafizmzqzvdOJ3aykDOUeCOE2dVtvXhDGiT0D2j+QZ1nGqZefi4zOlbPIpKB2Cu3Y9 MPrtW/KaBcqwdu+CpzKlVrYicWumvLh+ihTQoS/n+gbMPcYMMwgPMjJ/+G4EPiD3dXuL VNBAxCzmPNWPDi3l2fFx6Xb4q9IRkqVjDlksTbbkbHXKnLSyHUkPIo9YcyUc55rc1A6u ITk3LX3y/WFaf49+rRxvaZghSEwplbqgr7h9l0BE/XwejFmignfqsGRotls5sb9IAd6+ VSWA== 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 :message-id:date:subject:cc:to:from; bh=SWJoDj4kYq2AyHldcc3OMe8s6iyUJCKYhKHoGwIZyB4=; b=t8jxjjBbr+RLAMyp7oHASyMIuNzPWYxf28FWeqwLbf3Bzv9lJuahVoX8OsOgFjiGwj VXEEr4eL04w7McSWSaq19WAdpJQpLcHbY3z7A/VxGaxp70OgPQRj9pPxaVI9moQZBFFi wsOnCEBdmoyNPhyCbNkxdFo01M5VIGF9sEmPl5QEfcz5b47AblRsVBbgFiUQrKedgJ9x FIE+lSly+jGPdGUXPgegpiwURznXZrZUrza7qj8/HStUE91wyDRbjumKE2TfAmq+SpU2 DS1kDbv34DJDd9q5P97ujQZfJPCN4LA/8/zN3nFhGc8OphGv68P7gPAoNd5H2apKzmxQ zN2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v10si4291921edc.569.2021.04.01.02.32.38; Thu, 01 Apr 2021 02:32:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233580AbhDAJbc (ORCPT + 99 others); Thu, 1 Apr 2021 05:31:32 -0400 Received: from mail-m17637.qiye.163.com ([59.111.176.37]:35908 "EHLO mail-m17637.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233861AbhDAJbA (ORCPT ); Thu, 1 Apr 2021 05:31:00 -0400 Received: from wanjb-virtual-machine.localdomain (unknown [36.152.145.182]) by mail-m17637.qiye.163.com (Hmail) with ESMTPA id 89A4698050F; Thu, 1 Apr 2021 17:30:58 +0800 (CST) From: Wan Jiabing To: linux-kernel@vger.kernel.org Cc: kael_w@yeah.net, Wan Jiabing Subject: [PATCH] mfd: abx500: Remove repeated struct declaration Date: Thu, 1 Apr 2021 17:30:52 +0800 Message-Id: <20210401093052.1004712-1-wanjiabing@vivo.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZS05CTxlIGEtOTk1JVkpNSkxJTUJPTkNNTExVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS0hKTFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6MVE6Fyo4Mz8ULCsePjJKIQxK DBUKFDhVSlVKTUpMSU1CT05DQkxKVTMWGhIXVQwaFRESGhkSFRw7DRINFFUYFBZFWVdZEgtZQVlI TVVKTklVSk9OVUpDSVlXWQgBWUFKTU9KNwY+ X-HM-Tid: 0a788cc586b4d992kuws89a4698050f Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org struct ab8500_fg is declared twice. The blew one at 457th line is closer to user. Remove the duplicate here. Move "Forward declaration" annotation to the suitable place. Signed-off-by: Wan Jiabing --- include/linux/mfd/abx500/ab8500-bm.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/linux/mfd/abx500/ab8500-bm.h b/include/linux/mfd/abx500/ab8500-bm.h index 903e94c189d8..0b88eddcc5af 100644 --- a/include/linux/mfd/abx500/ab8500-bm.h +++ b/include/linux/mfd/abx500/ab8500-bm.h @@ -296,9 +296,6 @@ struct batres_vs_temp { int resist; }; -/* Forward declaration */ -struct ab8500_fg; - /** * struct ab8500_fg_parameters - Fuel gauge algorithm parameters, in seconds * if not specified @@ -452,6 +449,7 @@ struct ab8500_bm_data { const struct ab8500_fg_parameters *fg_params; }; +/* Forward declaration */ struct ab8500_btemp; struct ab8500_gpadc; struct ab8500_fg; -- 2.25.1