From patchwork Tue Mar 8 19:25:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 8537031 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D5D2D9F2B4 for ; Tue, 8 Mar 2016 19:25:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 03DC1201FE for ; Tue, 8 Mar 2016 19:25:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2AED0201C0 for ; Tue, 8 Mar 2016 19:25:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750848AbcCHTZo (ORCPT ); Tue, 8 Mar 2016 14:25:44 -0500 Received: from mail-pa0-f51.google.com ([209.85.220.51]:33050 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750701AbcCHTZn (ORCPT ); Tue, 8 Mar 2016 14:25:43 -0500 Received: by mail-pa0-f51.google.com with SMTP id fl4so19069335pad.0; Tue, 08 Mar 2016 11:25:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=BxJUKAbayNf+tauqkFXBgaHpAPJ6jVnouggg3caG8xU=; b=Fl9BsRDW3PSagb6yJT6TuxVIhfwRqskmbYAZ65LRrh1zcUpjenu7NVnstCmcuopLfx VtdPdQ+wCbxVBtQwWdLWtlnWiZbpa6XItcn3ypDyUnKIHwg8HZK5Vg0aMp2vtznO5uI4 H9/jNRPQEpBW/zNK9qPk8874nVogkjz6ODC3lasB8Bshwoe+lwnKDbobDEVJEAduSrfO Eb1fAv8iQcs+8CYy2MpZm15TLApRF8v8NXLyKSVx+YODj5h4O7Jhxbn3WYqtWTzUwTOh vuYPDiHCbLcnD8oUnlEklTKzhO1CadmAxtsrTef1SbHfrAdlnB1Upym129FCjhdbhuO5 4krw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=BxJUKAbayNf+tauqkFXBgaHpAPJ6jVnouggg3caG8xU=; b=U5HfA/5bCbAEqmMbMxkSTpcz/VYdrupKQ93gRUt2YYAFkvZtlYSiFxl9S38WwlJnZ9 bnjItjS9f0pW+GNKR9WED3prIt+kutwhfiHiXwYqNGau0pLzE1gbBSXqdVCepK81U3Dz gRiKM2wFz5HbQKKV6VH6LKWbtvuFBmCxO2zD/nSbugRBxLRkN4b3VPx2hVkuYUKAWCOV AuCwLtfkCsO+xGAPiCGRwMPM27UzY4o1I0XKlDAzvI80m3zS4sa7w0JL7fTVzJ2LK1eV pDwvRNfoftVbGXujtZ7dU5liBzC/cN9FYwz6jDoIsFqD5/2vjjGL4LcRl5TJAd1kt+e8 afXA== X-Gm-Message-State: AD7BkJIJ3uF/0g0ClAjPT82OzuUW5yvXokN+01psKzFvDm46iw27AlFHlo96KFBU7twVSw== X-Received: by 10.66.122.135 with SMTP id ls7mr44268162pab.59.1457465142629; Tue, 08 Mar 2016 11:25:42 -0800 (PST) Received: from dtor-ws ([2620:0:1000:1301:45fb:ad95:b590:7a84]) by smtp.gmail.com with ESMTPSA id ud10sm6781779pab.27.2016.03.08.11.25.41 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 08 Mar 2016 11:25:41 -0800 (PST) Date: Tue, 8 Mar 2016 11:25:39 -0800 From: Dmitry Torokhov To: Jiri Kosina Cc: Benjamin Tissoires , Mika Westerberg , Benson Leung , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] HID: i2c-hid: Add hid-over-i2c name to i2c id table Message-ID: <20160308192539.GA23955@dtor-ws> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When using the device tree binding OF compatible = "hid-over-i2c" the i2c id table also needs to have that name in order to auto load this driver, since i2c core reports module alias as i2c: where is compatible string of OF binding stripped of manufacturer's prefix. Signed-off-by: Benson Leung Signed-off-by: Dmitry Torokhov Tested-by: Andrew Duggan Acked-by: Benjamin Tissoires . --- drivers/hid/i2c-hid/i2c-hid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hid/i2c-hid/i2c-hid.c b/drivers/hid/i2c-hid/i2c-hid.c index b921693..a2c6c98 100644 --- a/drivers/hid/i2c-hid/i2c-hid.c +++ b/drivers/hid/i2c-hid/i2c-hid.c @@ -1191,6 +1191,7 @@ static const struct dev_pm_ops i2c_hid_pm = { static const struct i2c_device_id i2c_hid_id_table[] = { { "hid", 0 }, + { "hid-over-i2c", 0 }, { }, }; MODULE_DEVICE_TABLE(i2c, i2c_hid_id_table);