Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3200323ybc; Thu, 14 Nov 2019 05:37:18 -0800 (PST) X-Google-Smtp-Source: APXvYqyUsPpNSRcE8xK7I4/0JZCIL9Bn/nTKJjAAscwddLgpIzedtXQuwOg1rHhcbxLIL5lWRRDw X-Received: by 2002:a50:959a:: with SMTP id w26mr1286485eda.214.1573738638421; Thu, 14 Nov 2019 05:37:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573738638; cv=none; d=google.com; s=arc-20160816; b=XbpaWlWN0VM/pV3ndlvbnxK2//PHCV2ar9IqZeydaug7w3C68odGeM/WMWvXW079Ih IGL+3aKDvkuxPLnMIRA3R2e8iGIHo7MfoX56pOMBG2ILLg1eRQfZUGZ6t7YfwkTldmLm de2k1pfHUDw50ka881Ex2PjoyqtPQaQPWiFod4ox7Dte/s4EvZ0Brr8f175EE8hmYS7o JJ4DGd4wdZQj5Hjl/0L71pYe7t934Z4Bq4i8hBbomJeeKy9d+z/JsCrYnXqg63vfT1ik qHPI87M2oez/wXZw7NIpY/8a55vH1PBHgCmvajruCJ/54VEqy9L6Pn/u55lo9BUBQmIA j8ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CiO3hXAyFsuZm3cE8SXZzPxL1D+KaY4p9kZlHGgSu6M=; b=sYndbhukkM2WCVNjgDGZKRztmOPppKF7kRWkot461yfv9UdGPf5smhUr/z2nSSvciY JWzeV1DwuRlO3/f//upXMMlsv8idkDcqh1OBhDe+O3WzpZolWLx8noN1lIolwbyiBvX4 qLc1iileOuYyQKhs+e0Hw7FFKnF/mO/Ky+R3XF0EbZf4YCB+s1ASJjh+9wbvcoCwE216 CR89B0wQqwZf+U2a8h30zbVxG9IHw0jrlGrIcZt/1W386FE6A5cfo6rgJDpeV3Gb3vAh fOmFOxx0AK3jh4Pm2szcpKzKSGX6EneV87LyPE8MtFJypI/08HiyLOYAXeEt1j5awW2r fkfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XAsKkLwm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h43si4014126edb.89.2019.11.14.05.36.53; Thu, 14 Nov 2019 05:37:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XAsKkLwm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727481AbfKNNdE (ORCPT + 99 others); Thu, 14 Nov 2019 08:33:04 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:40686 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726597AbfKNNdE (ORCPT ); Thu, 14 Nov 2019 08:33:04 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id xAEDX1D2103984; Thu, 14 Nov 2019 07:33:01 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1573738381; bh=CiO3hXAyFsuZm3cE8SXZzPxL1D+KaY4p9kZlHGgSu6M=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=XAsKkLwmCbmrSZz0qqZ0uybtWehg+lTyb1r46JXCpf9lgI5tVmRgRRzRHFz1slhoM yvRufn4r7cDpQv1CXaWfSVWmEUF03HAlXf3JFJyAa+uZb1pxvaYJjtV0UnjxVudAZX TtonYgoPxdE0w4rwls5NrHYq5it/vqrmgDqm0DYk= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xAEDX1Un064593 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 14 Nov 2019 07:33:01 -0600 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Thu, 14 Nov 2019 07:33:01 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Thu, 14 Nov 2019 07:33:01 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id xAEDX1uP081637; Thu, 14 Nov 2019 07:33:01 -0600 From: Dan Murphy To: , CC: , , Dan Murphy Subject: [PATCH v17 19/19] leds: lp55xx-common: Remove extern from lp55xx-common header Date: Thu, 14 Nov 2019 07:30:23 -0600 Message-ID: <20191114133023.32185-20-dmurphy@ti.com> X-Mailer: git-send-email 2.22.0.214.g8dca754b1e In-Reply-To: <20191114133023.32185-1-dmurphy@ti.com> References: <20191114133023.32185-1-dmurphy@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org extern is implied and is not needed in the common header file. Remove the extern keyword and re-align the code. Signed-off-by: Dan Murphy --- drivers/leds/leds-lp55xx-common.h | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/drivers/leds/leds-lp55xx-common.h b/drivers/leds/leds-lp55xx-common.h index 18476051d3d2..051f8b33c601 100644 --- a/drivers/leds/leds-lp55xx-common.h +++ b/drivers/leds/leds-lp55xx-common.h @@ -183,29 +183,27 @@ struct lp55xx_led { }; /* register access */ -extern int lp55xx_write(struct lp55xx_chip *chip, u8 reg, u8 val); -extern int lp55xx_read(struct lp55xx_chip *chip, u8 reg, u8 *val); -extern int lp55xx_update_bits(struct lp55xx_chip *chip, u8 reg, - u8 mask, u8 val); +int lp55xx_write(struct lp55xx_chip *chip, u8 reg, u8 val); +int lp55xx_read(struct lp55xx_chip *chip, u8 reg, u8 *val); +int lp55xx_update_bits(struct lp55xx_chip *chip, u8 reg, u8 mask, u8 val); /* external clock detection */ -extern bool lp55xx_is_extclk_used(struct lp55xx_chip *chip); +bool lp55xx_is_extclk_used(struct lp55xx_chip *chip); /* common device init/deinit functions */ -extern int lp55xx_init_device(struct lp55xx_chip *chip); -extern void lp55xx_deinit_device(struct lp55xx_chip *chip); +int lp55xx_init_device(struct lp55xx_chip *chip); +void lp55xx_deinit_device(struct lp55xx_chip *chip); /* common LED class device functions */ -extern int lp55xx_register_leds(struct lp55xx_led *led, - struct lp55xx_chip *chip); +int lp55xx_register_leds(struct lp55xx_led *led, struct lp55xx_chip *chip); /* common device attributes functions */ -extern int lp55xx_register_sysfs(struct lp55xx_chip *chip); -extern void lp55xx_unregister_sysfs(struct lp55xx_chip *chip); +int lp55xx_register_sysfs(struct lp55xx_chip *chip); +void lp55xx_unregister_sysfs(struct lp55xx_chip *chip); /* common device tree population function */ -extern struct lp55xx_platform_data -*lp55xx_of_populate_pdata(struct device *dev, struct device_node *np, - struct lp55xx_chip *chip); +struct lp55xx_platform_data *lp55xx_of_populate_pdata(struct device *dev, + struct device_node *np, + struct lp55xx_chip *chip); #endif /* _LEDS_LP55XX_COMMON_H */ -- 2.22.0.214.g8dca754b1e