From patchwork Sat May 27 06:51:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 9751615 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9049B602F0 for ; Sat, 27 May 2017 06:51:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 791A828455 for ; Sat, 27 May 2017 06:51:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6A43328473; Sat, 27 May 2017 06:51:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 481102843F for ; Sat, 27 May 2017 06:51:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752913AbdE0Gvg (ORCPT ); Sat, 27 May 2017 02:51:36 -0400 Received: from mail-pg0-f45.google.com ([74.125.83.45]:36270 "EHLO mail-pg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751265AbdE0Gvf (ORCPT ); Sat, 27 May 2017 02:51:35 -0400 Received: by mail-pg0-f45.google.com with SMTP id x64so2952267pgd.3 for ; Fri, 26 May 2017 23:51:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=1wCwDbIqbGLqE/1CBdGA4jXsilFDi3Fz8KgskbtOKcg=; b=V+eQ9x++CrUkPbaQcZLBIuYJ00mJe8HMxyGYvIXZ0FC0dxs8GXm9T8VKCI+WUit9+f zzFrjayHREk9wONYHEhV2a0RuCUpKy0wYvZxS9a/uUt4RKfwojwp+OiU5nuXXbw+24Jn ejc5fbqHFBkln5qeJCJhD1zvzIVDLGIcta7P4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=1wCwDbIqbGLqE/1CBdGA4jXsilFDi3Fz8KgskbtOKcg=; b=o29CC3ZrL5vnSF3lmhSOMP0ZRd5kK77T4sdTZSwjoH4vgO+WhRLzn1I9SvdhGYo+3j oAHVzTyRN1Gzu6CF9khaIsW8SjGO6apND5uodb5oJLHbsq3+r4DnerCcFx83ohKFLK6d mYC2A4XfKmRql6PU7ODrwl/HNXVqCanJXzbRZ+FaVDeBZJ99lQIn3+eFF4/2u0GawpVh bFxU4LPF2c4th1fJMaXQoJzwo1yXcK1Abvau9eVOz2yn3CLDm+FuNzXViE8kQxIq+lP6 2VL9dkPSaHurrJJ10v7XYedsOqEW8drYt1V/YaMk/d+1DRyEEVgBM5OBBTx3FVS37J78 LOvA== X-Gm-Message-State: AODbwcBa224Q6PrPBpgJChtV7ogmR+bWFyBE8SmU5QNWR9y4MhoIprGP 2Up3tpkIJQcFi2Uf X-Received: by 10.99.62.67 with SMTP id l64mr6796227pga.172.1495867894538; Fri, 26 May 2017 23:51:34 -0700 (PDT) Received: from localhost.localdomain (ip68-111-223-48.sd.sd.cox.net. [68.111.223.48]) by smtp.gmail.com with ESMTPSA id u9sm4894608pgn.55.2017.05.26.23.51.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 May 2017 23:51:33 -0700 (PDT) From: Bjorn Andersson To: Sebastian Reichel , Dmitry Torokhov Cc: linux-pm@vger.kernel.org, Rob Herring , John Stultz , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 1/2] power: reset: reboot-mode: Make include file global Date: Fri, 26 May 2017 23:51:29 -0700 Message-Id: <20170527065130.3456-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.12.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Move the reboot-mode.h include file into include/linux to allow drivers outside drivers/power/reset to implement reboot-mode. Signed-off-by: Bjorn Andersson --- drivers/power/reset/reboot-mode.c | 2 +- drivers/power/reset/syscon-reboot-mode.c | 2 +- {drivers/power/reset => include/linux}/reboot-mode.h | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename {drivers/power/reset => include/linux}/reboot-mode.h (100%) diff --git a/drivers/power/reset/reboot-mode.c b/drivers/power/reset/reboot-mode.c index fb512183ace3..8f975ca0a8c4 100644 --- a/drivers/power/reset/reboot-mode.c +++ b/drivers/power/reset/reboot-mode.c @@ -13,7 +13,7 @@ #include #include #include -#include "reboot-mode.h" +#include #define PREFIX "mode-" diff --git a/drivers/power/reset/syscon-reboot-mode.c b/drivers/power/reset/syscon-reboot-mode.c index c8c371b285b1..563a97d7f73e 100644 --- a/drivers/power/reset/syscon-reboot-mode.c +++ b/drivers/power/reset/syscon-reboot-mode.c @@ -15,7 +15,7 @@ #include #include #include -#include "reboot-mode.h" +#include struct syscon_reboot_mode { struct regmap *map; diff --git a/drivers/power/reset/reboot-mode.h b/include/linux/reboot-mode.h similarity index 100% rename from drivers/power/reset/reboot-mode.h rename to include/linux/reboot-mode.h