linux-mips
[Top] [All Lists]

Re: [PATCH v4 2/5] MIPS: Loongson64: lemote-2f move ec_kb3310b.h to incl

To: Jiaxun Yang <jiaxun.yang@flygoat.com>
Subject: Re: [PATCH v4 2/5] MIPS: Loongson64: lemote-2f move ec_kb3310b.h to include dir and clean up
From: Philippe Ombredanne <pombredanne@nexb.com>
Date: Sat, 9 Dec 2017 09:29:10 +0100
Cc: James Hogan <james.hogan@mips.com>, Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org, LKML <linux-kernel@vger.kernel.org>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=pK3HSWgGIidCTvl0p+iiMKC0yD3R6+W187hhklvXMCI=; b=eR2Sq8lMFbALhZPWj0f9zCponln7aK04gmlatcHBHakQSlYb7AFClt8xa22/vpooh/ RyDoLBljvnaytC8zn+srnjgjWh9hs70oreZBJTU32TnH/XIfOrEi/3UlntPO3cWiQM9O YRXynpg8WexhlSYmuXSDg+wsEIis74P9SXEbBqTxJ29CnlBdPJND+ppzPz2Mp3yOEkds nuwWHN3XrY49jC68BlyDgMKizoK+dcUhhXR1XM9bviHaYez52hDTy73dfizBUA0B3We5 w3XShWAfM7fXtsU3x6/yixStd7aY9ToMyaLF+x9q4g498k6xMAQ/V8CDIA7P6uYVXPWz 0RPw==
In-reply-to: <20171209064953.8984-3-jiaxun.yang@flygoat.com>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20171209064953.8984-1-jiaxun.yang@flygoat.com> <20171209064953.8984-3-jiaxun.yang@flygoat.com>
Sender: linux-mips-bounce@linux-mips.org
Dea Jiaxun,

On Sat, Dec 9, 2017 at 7:49 AM, Jiaxun Yang <jiaxun.yang@flygoat.com> wrote:
> To operate EC from platform driver, this head file need able to be include
> from anywhere. This patch just move ec_kb3310b.h to include dir and
> clean up ec_kb3310b.h.
>
> Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
> ---
>  arch/mips/include/asm/mach-loongson64/ec_kb3310b.h | 170 +++++++++++++++++++
>  arch/mips/loongson64/lemote-2f/ec_kb3310b.c        |   2 +-
>  arch/mips/loongson64/lemote-2f/ec_kb3310b.h        | 188 
> ---------------------
>  arch/mips/loongson64/lemote-2f/pm.c                |   4 +-
>  arch/mips/loongson64/lemote-2f/reset.c             |   4 +-
>  5 files changed, 175 insertions(+), 193 deletions(-)
>  create mode 100644 arch/mips/include/asm/mach-loongson64/ec_kb3310b.h
>  delete mode 100644 arch/mips/loongson64/lemote-2f/ec_kb3310b.h
>
> diff --git a/arch/mips/include/asm/mach-loongson64/ec_kb3310b.h 
> b/arch/mips/include/asm/mach-loongson64/ec_kb3310b.h
> new file mode 100644
> index 000000000000..2e8690532ea5
> --- /dev/null
> +++ b/arch/mips/include/asm/mach-loongson64/ec_kb3310b.h
> @@ -0,0 +1,170 @@
> +/*
> + * KB3310B Embedded Controller
> + *
> + *  Copyright (C) 2008 Lemote Inc.
> + *  Author: liujl <liujl@lemote.com>, 2008-03-14
> + *  Copyright (C) 2009 Lemote Inc.
> + *  Author: Wu Zhangjin <wuzhangjin@gmail.com>
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License as published by
> + * the Free Software Foundation; either version 2 of the License, or
> + * (at your option) any later version.
> + */

Have you considered using the new SPDX ids instead of this fine but
long license boilerplate?
That would be very gentle of you if you did!
You can check Thomas documentation patches, as well as Linus comments
on the topic.

-- 
Cordially
Philippe Ombredanne

<Prev in Thread] Current Thread [Next in Thread>