Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5940293ybi; Wed, 12 Jun 2019 11:04:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEuXl48MftnJTSavzjT9lcNAdDiGcLhcga1D51YX2oPKWeuVEqoBy4s6aNEGR5v2tpzbfU X-Received: by 2002:a17:90a:9f0b:: with SMTP id n11mr466359pjp.98.1560362673663; Wed, 12 Jun 2019 11:04:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560362673; cv=none; d=google.com; s=arc-20160816; b=YeGS3gu98NuHGwCJS7l0mCUExt2hAYEvpQ9FU+KoRS7aQvkUMOLDDjxhcYpIc6VBbY 1slhItWc9P0hpjKeZ384nDaG+LyHy3Y9sX/3+ygB5NLFeCnseir1gjgQAn3joX/jTnzL h0uh1oa3gNwiK5RIm5Ut0TJ48/8RBK6bYUJPoUJ9Ynz9cUHwgL5nc4RZaElLcHzeDtm5 HrSmaXV493ROCQTzZLf1v0rVuA4fA+beTtHFYJ2JXAiupmELQSVBcErwB5dI3Jy6uwO1 p9v4XkpUYn6IV8LRwWIE6k3VLBuoJUBELxBvUR2P/P5bJVQYXfQeik8g77Cy803gLFqI /+OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=gMRaFc3/hEiSi70Ix5/f3einSpUu2nV4TVmJ7D/hed4=; b=pKL7X/e+EYn5ByrhESgU86Wnrxx2HGL1wsvNpUda1BhSC+mtqQI/hIf6diypzAYzRu jRAa2pdy0l9KKsdgVxjQCO1kwwk6N6tMPzNxdHRDE+rASPUKmsnw5JRCuZEUwcVXZpCV xwWkSasVEwlkA2xV+/PcmEuOPuQn4JrFc5NK+YF5xrN0CKR5Ys3ElozfXJy7r/MkqtY4 yR5mcG6+u57oVWjdfOf6ryM/w7HCJ30rAPLzPS5AslDnfsCBb/3odgxUOdv3IEEaYxNP tvQSZEcf5d10xJwOhRvzOjUeJUICELq5KNAbGEguF7yBikCIEejDC/9zVRRczjuWg+Sp G95g== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m25si386391pgv.481.2019.06.12.11.04.18; Wed, 12 Jun 2019 11:04:33 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407987AbfFLPVS (ORCPT + 99 others); Wed, 12 Jun 2019 11:21:18 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:44031 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728137AbfFLPVR (ORCPT ); Wed, 12 Jun 2019 11:21:17 -0400 Received: by mail-qt1-f196.google.com with SMTP id z24so5697902qtj.10 for ; Wed, 12 Jun 2019 08:21:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gMRaFc3/hEiSi70Ix5/f3einSpUu2nV4TVmJ7D/hed4=; b=W053NTWS7vMSs6KTP5Y63k8NLCpN5bfjB1+FDyJwOgy0ggC1OwvsDGVWKPRgb1UgS0 jXvLpsdtv4XYMQrACQsVcqpZP5d6PDOgOK2xOLeFGyCrLuxieV5iax0SCll+E7GVdwbq a5jQ8zVWdKb7zgsviHp2Do+vD4QBzGcMNZxXNhj2arCY5xCsG4yXQI27qoBRScF+8GB6 HJ8o19xKjuscyVz8Vf04Rda81kzO0WNg4TJ3YurTnffBx/U+O47SNE/0U6NFAMzAceI1 FNwEYGA1DHn40WvkM6/gWE9H/ChGe+LCkUGPQy5FHtS+goyaY8KMNErGxQs1h/sQDV83 mAQA== X-Gm-Message-State: APjAAAUyTJNjzXUa8GI/tq4873utMAMdtYiE3kw/Ro8ovd9ioaOt6a26 6gfp0dzEx+Pp2EBqDnmbsL04AGbOvou0xxLfCKNWJQ== X-Received: by 2002:ac8:303c:: with SMTP id f57mr71183256qte.294.1560352876572; Wed, 12 Jun 2019 08:21:16 -0700 (PDT) MIME-Version: 1.0 References: <20190606161055.47089-1-jeffrey.l.hugo@gmail.com> <20190606161322.47192-1-jeffrey.l.hugo@gmail.com> <20190612003507.GG143729@dtor-ws> In-Reply-To: From: Benjamin Tissoires Date: Wed, 12 Jun 2019 17:21:04 +0200 Message-ID: Subject: Re: [PATCH v5 2/3] HID: quirks: Refactor ELAN 400 and 401 handling To: Dmitry Torokhov Cc: Jiri Kosina , Jeffrey Hugo , Bjorn Andersson , Lee Jones , Rob Herring , Mark Rutland , Andy Gross , David Brown , Hans de Goede , "linux-input@vger.kernel.org" , DTML , "open list:ARM/QUALCOMM SUPPORT" , lkml Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 12, 2019 at 5:14 PM Dmitry Torokhov wrote: > > On Wed, Jun 12, 2019 at 7:45 AM Jiri Kosina wrote: > > > > On Tue, 11 Jun 2019, Dmitry Torokhov wrote: > > > > > > +static const char *hid_elan_i2c_ignore[] = { > > > > > > If this is a copy of elan whitelist, then, if we do not want to bother > > > with sharing it in object form (as a elan-i2c-ids module), can we at > > > least move it into include/linux/input/elan-i2c-ids.h and consume from > > > hid-quirks.c? > > > > Let's just not duplicate it in both objects. Why not properly export it > > from hid_quirks? > > Strictly speaking Elan does not depend on HID; exporting it from > quirks would mean adding this dependency. This also mean that you > can't make Elan built-in while keeping HID as a module (I think this > at least used to be config on some Chromebooks). > I also think it would me things cleaner to have the list of devices in elan_i2c. If we put the list of devices supported by elan_i2c in a header, and have HID read this .h file directly, there will be no runtime dependency. I am sure we can work something out to remove Jeffrey's fears. Cheers, Benjamin