Message ID | 20231005114816.1101953-1-m.szyprowski@samsung.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2016:b0:403:3b70:6f57 with SMTP id fe22csp349508vqb; Thu, 5 Oct 2023 07:48:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IETtO7ByQn+cYB715BJ/FtrxFslsfP8SdEk/+Q6mvqEi//i6KCi0sS99bds0r9ePKHIVd9m X-Received: by 2002:a05:6a20:4326:b0:162:650c:76b8 with SMTP id h38-20020a056a20432600b00162650c76b8mr5757672pzk.45.1696517282268; Thu, 05 Oct 2023 07:48:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696517282; cv=none; d=google.com; s=arc-20160816; b=wfMZN3Ic0yPbtIg3P0h9+LqYNBQsFleXWDDPDecGdrZZ4POXNjFxBLrbe03OEFkdxW i3/tb7/o1YJj2LEgENz5uFrVAg0zf9RiQmS34K6UPGK/e0SyESL3iDER98NqIxdfTVNW iNHYa5+Ke2A5okQ+Sm6170GTXTxIzynNY3G6zvLfJwjJLgnVKjvraM6SY6PXiAZdmYGv YiHWNWGbiAV/R5wCRUcY2gyTFp2w1jLuC7LhArjcJU1si6igVWlrcWw3ft4Mm+JyFj9I UVK0iD8Dw36ZUaeQ3RlOCcHbZMDZa+qU762ohwaBfPD2eC6Tvx5oOKEN9WIlic6vdv9U AOjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :dkim-filter; bh=K0V3kKyiwioyVGjMGi18lGgN46kvGuxop3Lkg0la2P4=; fh=XaFngp9HUoc2OeIT2yVx7W6ty4KrjU69hIydwZmzDKw=; b=OsZ+Lse63F0Ge2YuU4+jbK5ID6a1R+Wsv1MgjafBAdoEGyh9+2SWGYJ3GGGnXzjrDK 5zJelxvqxIbtQUvTwvuXLYHBiJbwI7ODg74x/afMhUA84m+DRE+0a3V/WxXj4OpDMB0f mp+DmmIzkurXS0xQpgtJ4PiDeiS4cDIwPLgw7SWgrBSNZzpuEXUhR0SH2TJwzBl6Es0W tj8n7/Mvkzr9x0sViguRZO6LVCVPjuRC3skFa1YFZaoPO22UKEcsbPRnQeF9Es9/KeXl xKintxhYXqhn4zud5wmpNxlFunbEDFP8VIyjlA82w/b/IqZsr2HQv+PT4neFA1STZfv7 XgTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=tZSQZwrm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id z20-20020aa78894000000b0065b4e2b52c5si1567472pfe.196.2023.10.05.07.48.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 07:48:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=tZSQZwrm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 4289A867FE94; Thu, 5 Oct 2023 07:46:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237856AbjJEOqO (ORCPT <rfc822;ezelljr.billy@gmail.com> + 19 others); Thu, 5 Oct 2023 10:46:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238985AbjJEOlb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 5 Oct 2023 10:41:31 -0400 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74DC785F3 for <linux-kernel@vger.kernel.org>; Thu, 5 Oct 2023 07:16:11 -0700 (PDT) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20231005114824euoutp028f74bffa776572d343ed5eb7afa92645~LM61TSJfj2243822438euoutp028 for <linux-kernel@vger.kernel.org>; Thu, 5 Oct 2023 11:48:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20231005114824euoutp028f74bffa776572d343ed5eb7afa92645~LM61TSJfj2243822438euoutp028 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1696506504; bh=K0V3kKyiwioyVGjMGi18lGgN46kvGuxop3Lkg0la2P4=; h=From:To:Cc:Subject:Date:References:From; b=tZSQZwrmlYxbn7pM3sAZiPs3fBMJj246a/8U313T1Oie8s2uDGQdc7nS2famFYMfA 5JjjQJrhoj4E0IEJwvBo6Bf4CyL+KB2v3rK/dQ7/LK/7n5DG9tHS2CIipG/GiwnFVU bi7vHgqg0z1yMXzYqdDgzdJCiN6GyAK2X84liCoA= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20231005114823eucas1p1debb8a190c079839ebdd65f135cd07e3~LM61ICxH32689026890eucas1p1G; Thu, 5 Oct 2023 11:48:23 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 47.85.42423.782AE156; Thu, 5 Oct 2023 12:48:23 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20231005114823eucas1p2db2015fae87787ca776ad987f2fe6f5d~LM60zr3c02300223002eucas1p24; Thu, 5 Oct 2023 11:48:23 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20231005114823eusmtrp10da3f848dd26e1c58cf13060472f7755~LM60zCfMo2664026640eusmtrp1C; Thu, 5 Oct 2023 11:48:23 +0000 (GMT) X-AuditID: cbfec7f2-a3bff7000002a5b7-ab-651ea2873832 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 3C.CC.10549.782AE156; Thu, 5 Oct 2023 12:48:23 +0100 (BST) Received: from AMDC4653.digital.local (unknown [106.120.51.32]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20231005114823eusmtip13660e942bc309057656955b195d06761~LM60c6aVi1331813318eusmtip17; Thu, 5 Oct 2023 11:48:23 +0000 (GMT) From: Marek Szyprowski <m.szyprowski@samsung.com> To: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Marek Szyprowski <m.szyprowski@samsung.com>, Dmitry Torokhov <dmitry.torokhov@gmail.com>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Subject: [PATCH] Input: max77693-haptic - add device-tree compatible strings Date: Thu, 5 Oct 2023 13:48:16 +0200 Message-Id: <20231005114816.1101953-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmplleLIzCtJLcpLzFFi42LZduzned32RXKpBgf+mVscXvSC0WLv663s Fjc/fWO1uLxrDpvF2iN32R1YPXbOusvucefaHjaPvi2rGD0+b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qcXnXHDaLtUfusjuweuycdZfd4861PWwefVtWMXp83iQXwBKlZ1OUX1qSqpCRX1xi qxRtaGGkZ2hpoWdkYqlnaGwea2VkqqRvZ5OSmpNZllqkb5egl3F9Qh97wRuOitnrl7E0MB5j 72Lk5JAQMJGYuPIkUxcjF4eQwFJGiQWP90IlZCROTmtghbCFJf5c62KDKPrEKPHh3GGwBJuA oUTXW5AEJ4eIgL3E4TdrWECKmAWmMUrMXfGPCSQhLOAj8XX6JTCbRUBV4m7XDbBmXqCGv8dv sEFskJfYf/AsM0RcUOLkzCcsIDYzULx562zmCYx8s5CkZiFJLWBkWsUoklpanJueW2yoV5yY W1yal66XnJ+7iREYyNuO/dy8g3Heq496hxiZOBgPMUpwMCuJ8KY3yKQK8aYkVlalFuXHF5Xm pBYfYjQFum8is5Rocj4wlvJK4g3NDEwNTcwsDUwtzYyVxHk9CzoShQTSE0tSs1NTC1KLYPqY ODilGpg6jdWMcwsOpVVY5fzZYH5gypHFuz8e0OPw37hcV7iTN/2q82R2VZ1l0RPm593ru7Zk /QfGvZs3778unVa5b/uqhaYRkc3x67W7p0+76L51b5HlQs55M571tEmcm6ZomLzwrlnJlA8+ QnX/XO7Pb1mmtCaj7uvqlVdiF9Z0uE1uTxdaxyv+Y3btgXmhAZU+xg1mrZqWDZLm4p2LzzdN eXv+nBE/W1MSW+4Kg2W2mxlnHZvMU71kYXrv6uonL/ZkaSzzsWHVcD1gMEfOWu/tudevoh4+ rGQ/tC14dWyupmTl1sNW8Szzig+8TffIMzH1Pzr324TwO080vjuueOCrvihmFZ/R/AKLnADL nqnpTw4qsRRnJBpqMRcVJwIAJYNP+u0CAAA= X-CMS-MailID: 20231005114823eucas1p2db2015fae87787ca776ad987f2fe6f5d X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20231005114823eucas1p2db2015fae87787ca776ad987f2fe6f5d X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20231005114823eucas1p2db2015fae87787ca776ad987f2fe6f5d References: <CGME20231005114823eucas1p2db2015fae87787ca776ad987f2fe6f5d@eucas1p2.samsung.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 05 Oct 2023 07:46:55 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778927305715630495 X-GMAIL-MSGID: 1778927305715630495 |
Series |
Input: max77693-haptic - add device-tree compatible strings
|
|
Commit Message
Marek Szyprowski
Oct. 5, 2023, 11:48 a.m. UTC
Add the needed device-tree compatible strings to the MAX77693 haptic
driver, so it can be automatically loaded when compiled as a kernel
module and given device-tree contains separate (i.e. 'motor-driver')
node under the main PMIC node.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
---
drivers/input/misc/max77693-haptic.c | 7 +++++++
1 file changed, 7 insertions(+)
Comments
Hi Marek, kernel test robot noticed the following build warnings: [auto build test WARNING on dtor-input/next] [also build test WARNING on dtor-input/for-linus hid/for-next linus/master v6.6-rc4 next-20231005] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Marek-Szyprowski/Input-max77693-haptic-add-device-tree-compatible-strings/20231005-231602 base: https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next patch link: https://lore.kernel.org/r/20231005114816.1101953-1-m.szyprowski%40samsung.com patch subject: [PATCH] Input: max77693-haptic - add device-tree compatible strings config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20231006/202310060002.ucD2eiLJ-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231006/202310060002.ucD2eiLJ-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202310060002.ucD2eiLJ-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/input/misc/max77693-haptic.c:415:34: warning: 'of_max77693_haptic_dt_match' defined but not used [-Wunused-const-variable=] 415 | static const struct of_device_id of_max77693_haptic_dt_match[] = { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/of_max77693_haptic_dt_match +415 drivers/input/misc/max77693-haptic.c 414 > 415 static const struct of_device_id of_max77693_haptic_dt_match[] = { 416 { .compatible = "maxim,max77693-haptic", }, 417 { .compatible = "maxim,max77843-haptic", }, 418 { /* sentinel */ }, 419 }; 420 MODULE_DEVICE_TABLE(of, of_max77693_haptic_dt_match); 421
diff --git a/drivers/input/misc/max77693-haptic.c b/drivers/input/misc/max77693-haptic.c index 80f4416ffe2f..2a6e713b32f4 100644 --- a/drivers/input/misc/max77693-haptic.c +++ b/drivers/input/misc/max77693-haptic.c @@ -412,6 +412,13 @@ static const struct platform_device_id max77693_haptic_id[] = { }; MODULE_DEVICE_TABLE(platform, max77693_haptic_id); +static const struct of_device_id of_max77693_haptic_dt_match[] = { + { .compatible = "maxim,max77693-haptic", }, + { .compatible = "maxim,max77843-haptic", }, + { /* sentinel */ }, +}; +MODULE_DEVICE_TABLE(of, of_max77693_haptic_dt_match); + static struct platform_driver max77693_haptic_driver = { .driver = { .name = "max77693-haptic",