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: 100592 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp578188qge; Fri, 26 May 2017 23:51:54 -0700 (PDT) X-Received: by 10.99.104.6 with SMTP id d6mr7047427pgc.185.1495867914652; Fri, 26 May 2017 23:51:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495867914; cv=none; d=google.com; s=arc-20160816; b=Pt/HbJZRl2o7vFP1O9toSAJG0vnks4thlWMCHFG1SmTC4h3vzJfE5zuauB35hjecjU z6jnQK+kpuoLWAcJ8W93iAqM4Q9GlTRGBa1JqMG3SkWf1kWwu1hRTFuHDalvDb63fNx7 rwGL0B9JeYw9RZHpeGXQqA1i3fRRLEqa/2ySgREDSQCs6MWzPhWFWCKj9XbIC/shrlJ9 fsNfrU4maD0OT2PveJZGQBUpDRNmyL48Yu7wDAJU+dlWZKDp/iW1nF2nmz+6ZfcHvSfb 0JNP4e17nqBlxJsp8PUpGm3SJWFgk/CcA5QIz3N3eh68YiB1ZULcIlWljbl5+5SJIGq+ pwJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=1wCwDbIqbGLqE/1CBdGA4jXsilFDi3Fz8KgskbtOKcg=; b=rcC7EQYeclWHN2hA+x3X1zA/QzhX96LwDnjsZ8qQMncn0QxHJdTPqR8WU4XbNm2EsE EgHiVrL1l+/L+ao3O9XKZPuHeRbYA1u/cAHd7298DlwJfAR/XbEVSy8NSCRzx0nBeO8I fZpjyVICYxEr7O4XvORLKopHqcd+/UbLZiRWMSQK28LLxNlOU4ENvz1/VGVE6SxIC5Vz FSpQiz9hWd8OTrmbJete5u6+f2oVZmnd/pr+lsQnUtN4ANFPo4/32x2iYOQZisRnZNkp QCJQeS+Cavd05mcyaNYHtD6doTXmuGiGIDxjAA1UhwXDgNoRpcZ9OTxIciyyDj5y/5Rm NtLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g29si3416894pfg.174.2017.05.26.23.51.54; Fri, 26 May 2017 23:51:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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=@linaro.org; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752913AbdE0Gvg (ORCPT + 14 others); 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 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%) -- 2.12.0 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