Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2638186pxk; Mon, 14 Sep 2020 20:33:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiWvz8TujSoa6U0PM8MgsL7VepCrKHScMEVqpH9xjwXTxF1+p2TvZjsVSUXaZI0luWolS8 X-Received: by 2002:a50:fc87:: with SMTP id f7mr20129349edq.162.1600140819930; Mon, 14 Sep 2020 20:33:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600140819; cv=none; d=google.com; s=arc-20160816; b=eZDdefx7cGM0QhtJGQNhY+n0a5AZW2/RVrvf2zYhXMikoeKYFr3CYKWBy/+Jt5hE1j BvyYM+/MT0YpqGr3UMXKb6s89bOX39LUsvY4bDYtYMplqPHwY+KYW9PtUnaL4GgYfU2I qDGOqL6J/i2hq5qOW/YRCQuWzO+cJxZTCDpKWXa894X0aJhhdOw7+mAXuEzoa6vCL77L FXsUVHiktNdihOUD0g7q/Q57yCkaqnwPY8CxVSm32S7R5VYSXtfzuN1/qXa5AZSlHoMw oIzjwjlQCPD+Zr7fNx/u82RljGQYMrO+ETFLEVjJrLVKzNpAjUXBdNof6TIGi+p444wZ idkg== 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:ironport-sdr:ironport-sdr; bh=mI0JaDfLsk3iHwiGWMYDbwftCPVN7bE6JHnRi0qkrjI=; b=s6VERrIqxgyVhYJ/aOILIpjd//6Pe/OlyIAVPJhkuiuc0FKWtpULd40Crw9USc7sap bymb2l4kAgYicZ1Y+2vQDdQUTDocd6QHLmX5R4d2UF3wOEIH7JY60O5K3BW8ShgikBsX O6RxYV+j4vNijV967AFvqtjzsLxh6EGramOQ0aUUM9ByKSMzMj5eo/UjFkcY74i5zEYZ JDjyjN5rqsGhEJc8cClRhtMNOib6xl7ge8BCgUTFbUraioL7aeoLRKv2+ZUPL2iYOVrQ GMkChmDuAQQgorBO++GzAoVVr6+2QgawgQIUk3Q3pQuF/npH5TTBo8zkxfyXE0OsHops BN0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si8608647eji.430.2020.09.14.20.33.16; Mon, 14 Sep 2020 20:33:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726125AbgIODci (ORCPT + 99 others); Mon, 14 Sep 2020 23:32:38 -0400 Received: from mga05.intel.com ([192.55.52.43]:64033 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725953AbgIODcb (ORCPT ); Mon, 14 Sep 2020 23:32:31 -0400 IronPort-SDR: FUEQ34m9oCUk/ZM6GffqHbcLI6V6MvrRn0mdnRUg2fR4gfwzVgvQaI8DGKBxt8PTSbYkfKRYWO ZHVBsPEbiuKQ== X-IronPort-AV: E=McAfee;i="6000,8403,9744"; a="244026448" X-IronPort-AV: E=Sophos;i="5.76,428,1592895600"; d="scan'208";a="244026448" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2020 20:32:30 -0700 IronPort-SDR: IUP3h1/LA16r4Dg5xxPSsg7tdflMSBSJdkwbzfRYHgpj6RvT7Y7lBleUUzjTFWmiBURSweDsUA 0KiUGTOnJ5cQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,428,1592895600"; d="scan'208";a="482596395" Received: from yilunxu-optiplex-7050.sh.intel.com ([10.239.159.141]) by orsmga005.jf.intel.com with ESMTP; 14 Sep 2020 20:32:28 -0700 From: Xu Yilun To: mdf@kernel.org, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, masahiroy@kernel.org Cc: trix@redhat.com, lgoncalv@redhat.com, Xu Yilun , Wu Hao , Matthew Gerlach , Russ Weight Subject: [PATCH v2 1/4] fpga: dfl: move dfl_device_id to mod_devicetable.h Date: Tue, 15 Sep 2020 11:27:50 +0800 Message-Id: <1600140473-12351-2-git-send-email-yilun.xu@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1600140473-12351-1-git-send-email-yilun.xu@intel.com> References: <1600140473-12351-1-git-send-email-yilun.xu@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In order to support MODULE_DEVICE_TABLE() for dfl device driver, this patch moves struct dfl_device_id to mod_devicetable.h Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Signed-off-by: Matthew Gerlach Signed-off-by: Russ Weight Reviewed-by: Tom Rix Acked-by: Wu Hao --- v2: fix the order for the header file --- drivers/fpga/dfl.h | 13 +------------ include/linux/mod_devicetable.h | 12 ++++++++++++ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/drivers/fpga/dfl.h b/drivers/fpga/dfl.h index 5dc758f..3c69596 100644 --- a/drivers/fpga/dfl.h +++ b/drivers/fpga/dfl.h @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -526,18 +527,6 @@ enum dfl_id_type { }; /** - * struct dfl_device_id - dfl device identifier - * @type: contains 4 bits DFL FIU type of the device. See enum dfl_id_type. - * @feature_id: contains 12 bits feature identifier local to its DFL FIU type. - * @driver_data: driver specific data. - */ -struct dfl_device_id { - u8 type; - u16 feature_id; - unsigned long driver_data; -}; - -/** * struct dfl_device - represent an dfl device on dfl bus * * @dev: generic device interface. diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index 5b08a47..407d8dc 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h @@ -838,4 +838,16 @@ struct mhi_device_id { kernel_ulong_t driver_data; }; +/** + * struct dfl_device_id - dfl device identifier + * @type: contains 4 bits DFL FIU type of the device. See enum dfl_id_type. + * @feature_id: contains 12 bits feature identifier local to its DFL FIU type. + * @driver_data: driver specific data. + */ +struct dfl_device_id { + __u8 type; + __u16 feature_id; + kernel_ulong_t driver_data; +}; + #endif /* LINUX_MOD_DEVICETABLE_H */ -- 2.7.4