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: 9751621 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 83478602F0 for ; Sat, 27 May 2017 06:51:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7627D2843F for ; Sat, 27 May 2017 06:51:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6AA3628455; Sat, 27 May 2017 06:51:56 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 AB0082846C for ; Sat, 27 May 2017 06:51:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752951AbdE0Gvg (ORCPT ); Sat, 27 May 2017 02:51:36 -0400 Received: from mail-pg0-f54.google.com ([74.125.83.54]:32905 "EHLO mail-pg0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751349AbdE0Gvf (ORCPT ); Sat, 27 May 2017 02:51:35 -0400 Received: by mail-pg0-f54.google.com with SMTP id u187so2940486pgb.0 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=K6ir1ejIXrzAX15nALOIkNlq4JymO2kVFGvznbUI+2qCrxsaajSZ7gyZBSrLCwpiWs N7aOrkefM8HUWuWMdq8lNm4MVuP7vurOc4yu7Cs5N6CaYTHrH5DKBKGl3n1pSILTtvFy yArfiC6O6uwjX4EwoloPGd87b9iXgNtukIDe4aIKPkm6G/QBMBQwnKsssWhgZGFY3hVA k71oaTQ8i5YZGilUkk7bqYEzNmeHRI6yPvW/B4NWEWN+xxeACb7+HPCnaPOkhsB4Nb2I nAR+bSPNg26CZjS60cxlb1nzBvlSYZ3fsiawtRqJvg5XWgkWx94gs5XgjewSCY2gVwER XwgQ== X-Gm-Message-State: AODbwcAqibyBsHFrwObsiO3Mbplha4c+TBx6EIPMyvkdjr4o1YxGjmwo trBFbEgfTnNmOKmy 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-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@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