Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5939627ybi; Wed, 12 Jun 2019 11:03:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGqyaTnyvTVRv+tX9YCF8ZkDAOE3oChoqf/KgVrsdUPgqnNG27evFVPT6MFMXTxDAF8KjW X-Received: by 2002:aa7:8d98:: with SMTP id i24mr19872929pfr.199.1560362637166; Wed, 12 Jun 2019 11:03:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560362637; cv=none; d=google.com; s=arc-20160816; b=bLrMLLwCLaZRywjuS5IJhZ4A9Fe2UdJxeJnpa9aZrQM95qZ3S3ZSD/3tJrXFbaPONj AthTvzT7K6aagdZidPrnDax8r/VbxLzyCh7/Uk3GPHXIYJTYvvKmfjC1YLV/zEW/oQev gGvvxPJCignTxy/X/xShPW0CCnJNO2CJbTp7//13Zi5dqVl0TzCs1qP1MuHDnnwHF/wc A12ouLVvDkVsdovyJBJjNZgRV4tAJnxy9lvCOmuboLfqLrU1LjEYZEotx/1Ieun+WkML rcXEZISII65WRHxxrR3qomdWIiQrQ6SBnosQS2dYDWPwW8xPsItzQ4QK2EPSNe/ZQZHS XD7g== 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:dkim-signature; bh=vI+MjupPN0bdSLC0d4n9EKY3NhMFE/hPF7Qke//MIZg=; b=krZJtJlaXrz40UFQYGJoHnO2d8gUiWuGbI8KM8rIVGkweaYaMxtDpBiJVRb4d19LpQ 6gyKndPpGLPLlvsSwhAFqcKPLKRzwO8CoseJb4CK2AAuiYjNRL8v+FhxEFHOziFCL1ph sYIzuGLWA0dXdKhhSM32uBxnQ7SGIaaKbi06SXJNM6OwJRhbF1PNeaSx8aFY8B+Ph6VF K8awahImgXQBHpxn42YE6Y/RXhbyuafbqKYpc5k5pvAHDn8qMZXdtgJPglOAEjt3kV9E U3wh1K9bfWvvGbyFCL1suJpNs+iigXStVutsGjlpQcQD3lG0f/3PDvdfD4ZClB+umlpd 6AdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="FMNMZ5l/"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d135si406036pga.557.2019.06.12.11.03.42; Wed, 12 Jun 2019 11:03:57 -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=@gmail.com header.s=20161025 header.b="FMNMZ5l/"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2501917AbfFLPOC (ORCPT + 99 others); Wed, 12 Jun 2019 11:14:02 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:43480 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2501887AbfFLPOA (ORCPT ); Wed, 12 Jun 2019 11:14:00 -0400 Received: by mail-io1-f66.google.com with SMTP id k20so13226287ios.10; Wed, 12 Jun 2019 08:14:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vI+MjupPN0bdSLC0d4n9EKY3NhMFE/hPF7Qke//MIZg=; b=FMNMZ5l/AMgRbC8NwAe+xwcMBIahtFMP/TeDWBxDwkaeY9lWLrRo/zIdPjWjzXGFtb Tdxo2nt9ZqRQ2e3mT6RWTA+gsI1ZO8yllh9Utv6BPqo9fSyKFw8iwdAq7nST/Jl5aqGa W7MDM7oTdJvy4cT6mshiFIljSfoM9pwrfIqTE0jKCXDtvG5NZ8+UNJ/VYTa9aqTZjvm2 vk78kFLYP618peEMo0ZEmiEab3aV1uO5NSQ6sbuE5hRNVHdY41xFflNoMflKGXui5lX5 vP0FQvZ0Z1rm1f7V02gWlj4DFCefbox2yDTCY++MP8HQsxKBekf7VVVMr2Rp4wh/kZZ5 GOqQ== 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=vI+MjupPN0bdSLC0d4n9EKY3NhMFE/hPF7Qke//MIZg=; b=Xd7PDEdt7eRevVzZkg5xovLO6QOO177xdW0jauptSVBEWZziMRJGuMgOH8+RdO1/mI 1ZRlrXWG753txr+03hr4AazX4JQ+DJq4DSJY5V2H83PDhV6NuGOH+uSaWmdHF7rkk8gd A7wxV7oMQY4zl8ywVay7lhRJu+z/74GGp64FILbwuRlsFA9xiL9VSNJcYgYtYqY3Em0W hGe1hMHKQFSFEZe2trlmzL1FyMm3Q9qYDm4eV8dl3TgbwyDtOxEqtC5wst5+VqTCvSNs 5dN5opyD8/cpl/4KkZmhbjWmulCTQg2Ci7Jj5a5oRxko/0gpMc2GFbAhGKgIC+juCj28 cYCg== X-Gm-Message-State: APjAAAVqVeS1tsE8lU3s7po5LO4rxS9haLlv6xFBiiQsjHWnM4ALTTc5 OkLGXeQtQDPiKDaChC+65iCXOR/twc2abxKqEWs= X-Received: by 2002:a6b:f90f:: with SMTP id j15mr25554922iog.43.1560352439357; Wed, 12 Jun 2019 08:13:59 -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: Dmitry Torokhov Date: Wed, 12 Jun 2019 08:13:47 -0700 Message-ID: Subject: Re: [PATCH v5 2/3] HID: quirks: Refactor ELAN 400 and 401 handling To: Jiri Kosina Cc: Jeffrey Hugo , Benjamin Tissoires , Bjorn Andersson , Lee Jones , Rob Herring , Mark Rutland , agross@kernel.org, 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 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). Thanks. -- Dmitry