From patchwork Sat Oct 28 16:50:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 117398 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp764287qgn; Sat, 28 Oct 2017 09:51:08 -0700 (PDT) X-Google-Smtp-Source: ABhQp+T83i43PK/6uK8tbBktT8xeFD2fYR5vdiHCNc6vLkcRsfBgylMZnHA4VvXar6k7ddsSe4x9 X-Received: by 10.99.36.133 with SMTP id k127mr3282691pgk.171.1509209468572; Sat, 28 Oct 2017 09:51:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509209468; cv=none; d=google.com; s=arc-20160816; b=uQcMS1yg69wobs4//dPVpYtxYaaKgiYeJOpK7ZEcCor0LCqgU2cdEX8zeijT9YDCus SF+EESW6zIMm/Q5OhNNnuZS2fcq2pfiY6p8aL0aQzZFJQ58pf138IJRaE91u/q/WTwUl 3JA1QLdHuukCNVta04XPIYMHWXkLWnHm8M0elIcrZEw0IYB5sdlYt5K8E98+GQ2CnJ2n WW+XtGTh98oTKhxMUH0m+AdXq6M6ZGOaQEl8HFMmu6BBAcWnMFWhkGFhgYVLvsa+ZnP3 j85NGooasd0JQ9t6s+FrLQPttzju8GDd0iz27Tgbt50eyFP3j9sRyFW97Zuzl5/Vb57A Yx1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=72hhaWn8dnD9LpewZLFdm68boE5AoJQN+NGO9dxxAJ0=; b=DxvYyICOnKntq1QjyCiOYAvjfzvwnGAYHM3Y5v/E/r12YDZvg5ceb7YcnkZ30vsIEo T0sE0EF3BwAAf/0pNo2nj1+1pTKd6NYXnpWHdGag0Gp4QB119BRplcwX1NGiC5INlf7q brAKBgtXFNYvb5G1x2fedg+dRin4PitIz9miQ2mAA7mm2vwNVoaXHGybUBTS7Dw0lHtB pGoQJGVi9cqF2zTsVyoV1JFl+SQzXGbLiDUFkC2nwO6ZwyDm/xaY4wzhRTfloJxMRdxJ UYYdprDr2ZyS1w5UQ+QelNxiKPMxDm7wc7043KFLqEO4NWabIJztOFk9KvGsfrh5HnZg LnAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=THZTsXPg; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 204si1410018pgc.742.2017.10.28.09.51.07; Sat, 28 Oct 2017 09:51:08 -0700 (PDT) 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=@nifty.com header.s=dec2015msa header.b=THZTsXPg; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751610AbdJ1QvG (ORCPT + 27 others); Sat, 28 Oct 2017 12:51:06 -0400 Received: from conuserg-12.nifty.com ([210.131.2.79]:39212 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751419AbdJ1QvB (ORCPT ); Sat, 28 Oct 2017 12:51:01 -0400 Received: from grover.sesame (FL1-122-131-185-176.osk.mesh.ad.jp [122.131.185.176]) (authenticated) by conuserg-12.nifty.com with ESMTP id v9SGoDXH021928; Sun, 29 Oct 2017 01:50:14 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com v9SGoDXH021928 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1509209414; bh=72hhaWn8dnD9LpewZLFdm68boE5AoJQN+NGO9dxxAJ0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=THZTsXPg/YS9ZMoL7sv52t+aRTLGOuN7ybL2eIM1pbNrYo633lAzUBy83S2FDbbno OpN2xdzOpjQ/cigGVR6I7hHDYWrcw5SKb8MvNN0XBoFrD0Vs+YFq4KVHbhTdTQ8HEa TGdYd7b/mrOeZkbF9mAdNCEHl+ui5ErMqnplQbaXNUH0CspFCg3gc+WOrgA+kgMOUs B1H4jN+erf/rcm8Hfk5CxSJnFwpYr4BGonvRQ++ZbRSJIdHHhgCsUHDaRaho1RqSYl wmDyz0bhLb7T7t7AyLvp61TQG5Adx5SWXywSZnqcd+iH8I7L574P5LTd53GTAhrRMz g/Ax4vxIy38mg== X-Nifty-SrcIP: [122.131.185.176] From: Masahiro Yamada To: Philipp Zabel Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 3/4] reset: minimize the number of headers included from Date: Sun, 29 Oct 2017 01:50:08 +0900 Message-Id: <1509209409-2698-3-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509209409-2698-1-git-send-email-yamada.masahiro@socionext.com> References: <1509209409-2698-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 62e24c5775ec ("reset: add exported __reset_control_get, return NULL if optional") moved the dev->of_node reference to core.c, so does not need to know the members of struct device. Declaring device and device_node as structure is enough. is necessary for bool, true, and false. Signed-off-by: Masahiro Yamada --- include/linux/reset.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/include/linux/reset.h b/include/linux/reset.h index 9329664..53e5e78 100644 --- a/include/linux/reset.h +++ b/include/linux/reset.h @@ -1,8 +1,10 @@ #ifndef _LINUX_RESET_H_ #define _LINUX_RESET_H_ -#include +#include +struct device; +struct device_node; struct reset_control; #ifdef CONFIG_RESET_CONTROLLER