Received: by 10.223.176.5 with SMTP id f5csp1286239wra; Wed, 31 Jan 2018 04:15:21 -0800 (PST) X-Google-Smtp-Source: AH8x224iE5LS4WZ5ppLtPDvIDshFFpa5OsokMsVCU9YcimqWkEbb9e16Yk8HudwtSIt6Fi7uIsl1 X-Received: by 2002:a17:902:33c1:: with SMTP id b59-v6mr19300838plc.111.1517400921244; Wed, 31 Jan 2018 04:15:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517400921; cv=none; d=google.com; s=arc-20160816; b=h81Dm7fXDIjCNiwpFYNSvjx2TmcKTV0u1isIG2zGsw4vvU4hycNGX9UZtQfCXgcncK 3gcp4igyH/AS/M0xY9YBIYJ9ZIInqfx4tDIFJHBgrwj1eND0Av53H0cIT4QtX6hnJt2r JBv/LFZUvFg6Q2/uwDsVMhMPAw+Mjf6NOrJjA+4e9Wu63OZ4ZBxWON5W8ET5rqOs1qoI TX2Qiv4md/r97nH30P1GqixbgNPThVLKZKbpq4oNz3ZUDo8cNMrOyNkRTbQfrmukjmLr ksxrqNiWDPTE8a/OLdRQhOuNB+KoMU/e/F9IlsX94aTO4NASaQtikbrn7o8CUEmsOhSg 1Ikg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=SHEbcLVVtZIQEqvDE7uqr1laKFSqyND70Ap4iGRL8IQ=; b=EHq7LDFUTswOShiuNK/y/EXqXBbUkJpBalX8iouf/V0El/jSmg3xVia+HJr90tHJa5 LoU1t+0j/mQ8l7IJRdOCsbZwQUra3TDHmLQg8hgnTf2uMwHASPsk7YN+rmkDUK6S5Aj9 5qRDkJhihN4Vrmk+7F4mfmoj5mWY/EV9w4whKBpcZXFE79OfbSFfJ8h7xP2wNubKwsM0 2QpHvbbXsvBYF6TKft07MH3UQ11/7DNWytJszp17VR5k6xtxH9X2z6ezoEXDeLBf//3i kLPVclLfL2OYOsFYERT5wvpeD3+8KRzd1szNOOy+smWpbbC2JyU/mq7LpnhREXlTmx5y emeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jmNFR/Ql; 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=NONE 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 v6-v6si14796553plk.720.2018.01.31.04.15.06; Wed, 31 Jan 2018 04:15:21 -0800 (PST) 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=jmNFR/Ql; 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=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752843AbeAaMDx (ORCPT + 99 others); Wed, 31 Jan 2018 07:03:53 -0500 Received: from mail-wr0-f176.google.com ([209.85.128.176]:41532 "EHLO mail-wr0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752172AbeAaMDv (ORCPT ); Wed, 31 Jan 2018 07:03:51 -0500 Received: by mail-wr0-f176.google.com with SMTP id v15so14683820wrb.8; Wed, 31 Jan 2018 04:03:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=SHEbcLVVtZIQEqvDE7uqr1laKFSqyND70Ap4iGRL8IQ=; b=jmNFR/QlsGzA164+KvZyurBXcRm+ZF5YQKBSa6n3cyjJlrJkv1E17onQe39Qvl26MK XnwjRXe48iP2Kg6zYNR3rxyvL4a/auqUQII6hYxXHSyYA1w+DkLDdHMtuoYdj+W5ooTm g+DLdXXsbsv6T/Ri31Oatv4wRKXiSVHvd6Lyj+Hc773l7cPpfORzvtuC43qRol9uzb1D uq16TlJkACzmSLiYKkJnpxeXTlrbwmnrjk0IHLVO3pkfQlTl4MUdKsTn+yLuCHtIRuEo zn5XuCgIsB8FNgj6XfIBRdB/wAotrjDjAsgn/T3/cNO29PCAHCsddYZygO8O3VWjNVDl /1ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=SHEbcLVVtZIQEqvDE7uqr1laKFSqyND70Ap4iGRL8IQ=; b=jEW0KcYeYR8WHl8JCyJ6c3gYgOuEvdLm5D3K+jOWBBbwLznV0s1OZQ6j29bw/8FA96 4aB85bYTEnbv3hw6RtWm6Bj+Gvu6i50DBWf8r24T4PzvbmGdRWprtR3Ltp8gGJsp1yXM 4uJ/8wFm0tp+lAJDwW5nqVA7ZW0CP5G7rDspUIYjSneyA0hwx4qvqE0l2FNFH7RDmdZ0 5sQvNNp6BwUv9Qx/c41HfTVwPztOfLHC7pNpYy+YFPqrVYXSZgafgFLSX8KpDs7OaBft HTeeSs0YxnyeByRympjMDM5iadZUbEWGZUTiOEww/X47H+SYTvLPdIgRXH32s3YMPSPQ OeYA== X-Gm-Message-State: AKwxytfr5DnK95WVJINdPUxNIQX5BJXKWSE0pFVNzTPOQX5V052c6lcy wwSYwODqvfUEKFsr7olcYag= X-Received: by 10.223.155.136 with SMTP id d8mr26284353wrc.161.1517400230475; Wed, 31 Jan 2018 04:03:50 -0800 (PST) Received: from pali ([2a02:2b88:2:1::5cc6:2f]) by smtp.gmail.com with ESMTPSA id s63sm6199731wrc.64.2018.01.31.04.03.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Jan 2018 04:03:49 -0800 (PST) Date: Wed, 31 Jan 2018 13:03:48 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Andy Shevchenko Cc: Jean Delvare , Wolfram Sang , =?utf-8?B?TWljaGHFgiBLxJlwaWXFhA==?= , Steven Honeyman , Valdis Kletnieks , Jochen Eisinger , Gabriele Mazzotta , Andy Lutomirski , Mario Limonciello , Alex Hung , Takashi Iwai , linux-i2c , Linux Kernel Mailing List , Platform Driver Subject: Re: [PATCH v2] i2c: i801: Register optional lis3lv02d i2c device on Dell machines Message-ID: <20180131120348.azy25aqvn5wrdkeh@pali> References: <20180127133209.28995-1-pali.rohar@gmail.com> <20180128144509.pobnj7cayc4psgrj@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sunday 28 January 2018 17:00:35 Andy Shevchenko wrote: > On Sun, Jan 28, 2018 at 4:45 PM, Pali Roh=C3=A1r w= rote: > > On Sunday 28 January 2018 16:39:25 Andy Shevchenko wrote: > >> On Sat, Jan 27, 2018 at 3:32 PM, Pali Roh=C3=A1r wrote: > >> > +static bool is_dell_system_with_lis3lv02d(void) > >> > +{ > >> > >> > + /* > >> > + * Check that ACPI device SMO88xx exists and is enabled. Tha= t ACPI > >> > + * device represent our ST microelectronics lis3lv02d accele= rometer but > >> > + * unfortunately without any other information (like i2c add= ress). > >> > + */ > >> > >> Isn't it simple > >> > >> return acpi_dev_present("SMO88", NULL, -1); > >> > >> call? > > > > ACPI device name is SMO8800, SMO8810, ... Will that acpi_dev_present > > function match only prefix and not exact string? >=20 > OK, fair enough. >=20 > Do we have more users of such pattern? I have not seen this ACPI pattern yet, so probably not. --=20 Pali Roh=C3=A1r pali.rohar@gmail.com