From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750773AbdE0SlQ convert rfc822-to-8bit (ORCPT ); Sat, 27 May 2017 14:41:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:49790 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750727AbdE0SlO (ORCPT ); Sat, 27 May 2017 14:41:14 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9AF3C239E1 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=luto@kernel.org MIME-Version: 1.0 In-Reply-To: <3669DF37-7D17-40AD-852A-F8EDBE15A785@gmail.com> References: <4a4da770c8d0af7e3f31e79261b43573d70a6ea6.1495862272.git.dvhart@infradead.org> <201705271250.20338@pali> <3669DF37-7D17-40AD-852A-F8EDBE15A785@gmail.com> From: Andy Lutomirski Date: Sat, 27 May 2017 11:40:52 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 16/16] platform/x86: dell-wmi: Convert to the WMI bus infrastructure To: Dmitry Torokhov Cc: Andy Lutomirski , =?UTF-8?Q?Pali_Roh=C3=A1r?= , Jiri Kosina , Darren Hart , platform-driver-x86@vger.kernel.org, Andy Shevchenko , Mario Limonciello , Rafael Wysocki , "linux-kernel@vger.kernel.org" , Linux ACPI Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 27, 2017 at 9:17 AM, Dmitry Torokhov wrote: > On May 27, 2017 9:04:38 AM PDT, Andy Lutomirski wrote: >>On Sat, May 27, 2017 at 3:50 AM, Pali Rohár >>wrote: >>> On Saturday 27 May 2017 07:31:30 Darren Hart wrote: >>>> - dell_wmi_input_dev->name = "Dell WMI hotkeys"; >>>> - dell_wmi_input_dev->phys = "wmi/input0"; >>>> - dell_wmi_input_dev->id.bustype = BUS_HOST; >>>> + priv->input_dev->name = "Dell WMI hotkeys"; >>>> + priv->input_dev->id.bustype = BUS_HOST; >>> >>> Is not there BUS_WMI, or something like that? (Just asking) >>> >> >>Jiri and/or Dmitry, what is bustype for, anyway? > > The bus type could be used to help further identifying device if it used same vendor/product for spi and i2c, for example, but there are not many if them. I'm not sure if anyone actually makes decisions based on it, but it is part of abi now. > >>I suppose we could add BUS_PLATFORM. > > What would be the difference from BUS_HOST? > If BUS_HOST means that the device is part of the host as opposed to being plugged in, then it seems entirely reasonable.