Received: by 10.223.176.5 with SMTP id f5csp1707133wra; Sun, 28 Jan 2018 06:45:59 -0800 (PST) X-Google-Smtp-Source: AH8x226PHWk6PEGLLmXMDkY2CSxx4b8mSgjN5D+aJKyvC8/oqqZjbtj2TA4UzRg00aWDYoh1lFF9 X-Received: by 2002:a17:902:7586:: with SMTP id j6-v6mr7202073pll.23.1517150759645; Sun, 28 Jan 2018 06:45:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517150759; cv=none; d=google.com; s=arc-20160816; b=hJHGqrHgjlMaqsFcCcGCFUSrTiJqrLPyRULDCfRMw0TspJxD4nhil9ZuBa8PMfqM5T rnCwg/kzUa3+gjyHdYVihycc8EPRr8aYyYEpIe1frL3OhOFAB+0EKnNVFTs1frEgvp/K 0sazvtPjw4cHWD1d8obY5mYNk7Gekn/kAK7oVzJEPJvPvC7G8cWqG7a83wgoBX5QXd73 AFYERTbXYu9bbTzxoP7iezeOqm6Cpe4ZGTKbO8FwfPhqewyUrUBHlIIXyJ32O+d4LvKe TKBup8Cl3eQj92UjRaamdDe4eKKv4DOJeJzISdPhBtfbNNpPDn/FzRTntyqLdTxEHVtt LH4A== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=zDwf31Oyx1gnhlBrv2lpJp7v9osN8cfQLejy8iD+Eag=; b=wq54bQdoBkHdtNyXkD15llbhJWVzk+RjK7W9RB5UeIyiopDhGCvO5tzOEr7AzQVTYo uIMLaiX7qe9q1/YERPkd6G0SMRuWdJP5kqpiJnzK5TyysqHR3AEIWwhWa3M9+gAnVctg G1ZxiiYf1dEh8tZRe0RK85JhFbh6oma8zdfjaOb0O1dVYPD9eSt65ohwdEbcW/N+aLOB R1cRIOfxNVDZuKhpz3BVbbivLDGP77BUGLxnKyZ1Z1mjXvzAUS12JQZ1fog4FUWfbifz fw8k2xVQI+vjONtVa6NZCbZaQpzPd3WhW7GSwRWKHC3gh5ohz06rUbp6E+O9UdhtKQyI tg7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=saWKPgl8; 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 f26si5854829pge.578.2018.01.28.06.45.45; Sun, 28 Jan 2018 06:45:59 -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=saWKPgl8; 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 S1752002AbeA1OpQ (ORCPT + 99 others); Sun, 28 Jan 2018 09:45:16 -0500 Received: from mail-wm0-f51.google.com ([74.125.82.51]:51901 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751898AbeA1OpM (ORCPT ); Sun, 28 Jan 2018 09:45:12 -0500 Received: by mail-wm0-f51.google.com with SMTP id r71so9457344wmd.1; Sun, 28 Jan 2018 06:45:11 -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:in-reply-to:user-agent; bh=zDwf31Oyx1gnhlBrv2lpJp7v9osN8cfQLejy8iD+Eag=; b=saWKPgl8HyT0+it1lpaX4PcPxTBR+SE9Fk+gRNxy0C8gBIKEec9uyAio8X3HK4x6dp zf4zGhiSXszmT0l+qREQ5UDrXMyb4Uca6QceXomaSXliC3pUwiPJcQrsKwXUSMp3wlsX dpwrR24D5CmdyLCtNQxko0VbjTqogTHKMw5KFfQYqC0ag1oBgIHnzGY1pwoY2TTUCe9q 80tk6iW5RCO6KRWJQHtKCpfH5PedNjy/tOT/vdH6IESnkbUwXstNfGdH3EeRGTILnAuY HO3FKVqxlTswbbG4vv0muoZRcrWe/3acoDcu/sLYI6XC5VQEhmw6Ds+s7a5iOdPIPZYv V2tw== 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:in-reply-to:user-agent; bh=zDwf31Oyx1gnhlBrv2lpJp7v9osN8cfQLejy8iD+Eag=; b=RtnzzyzXuUPGPqDSsIcxUbK+xCut/S94KgJo7qiE1x/SLTbksaRMrJySk/1ICs2ka+ BcNMMFy4taaM8k0UHDcXykNEMCdfbD4kwj2yrFflS2mun5vs99dQ6RYo4KJmn6PjtAFg ltuoYXfvadoFF8hwrKiqabiLPMLIwAjlsvgLdFWdxIRkrXii1zW7uBhF787XWmcHcRLL vVUCKvAyLJQwTZERk2kf9t8mvUBwLvitQtBEIPMnMtQ+R9gPdV0bYJS0ADQx4vKiHEuy qw0yVinQ3Gg6HkuyxSXc6wSpLqE/BB95TTEfz8BqsRPPmX99id/rJFdKxW2ehQsDS5OL cLyQ== X-Gm-Message-State: AKwxyteLMmOlcnAmjFZCVjjT+jGcLm+jK6IOAZYKa0aYE8kvOmSh+vrO 9EzToEwTxfgqO015MohDFHY= X-Received: by 10.28.7.68 with SMTP id 65mr14911708wmh.9.1517150711139; Sun, 28 Jan 2018 06:45:11 -0800 (PST) Received: from pali ([2a02:2b88:2:1::5cc6:2f]) by smtp.gmail.com with ESMTPSA id 137sm14126166wmm.46.2018.01.28.06.45.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 28 Jan 2018 06:45:10 -0800 (PST) Date: Sun, 28 Jan 2018 15:45:09 +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: <20180128144509.pobnj7cayc4psgrj@pali> References: <20180127133209.28995-1-pali.rohar@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fu7yxevz6pow27fd" Content-Disposition: inline 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 --fu7yxevz6pow27fd Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sunday 28 January 2018 16:39:25 Andy Shevchenko wrote: > On Sat, Jan 27, 2018 at 3:32 PM, Pali Roh=C3=A1r w= rote: > > +static bool is_dell_system_with_lis3lv02d(void) > > +{ >=20 > > + /* > > + * Check that ACPI device SMO88xx exists and is enabled. That A= CPI > > + * device represent our ST microelectronics lis3lv02d accelerom= eter but > > + * unfortunately without any other information (like i2c addres= s). > > + */ >=20 > Isn't it simple >=20 > return acpi_dev_present("SMO88", NULL, -1); >=20 > call? ACPI device name is SMO8800, SMO8810, ... Will that acpi_dev_present function match only prefix and not exact string? > > + found =3D false; > > + status =3D acpi_get_devices(NULL, check_acpi_smo88xx_device, NU= LL, > > + (void **)&found); > > + if (!ACPI_SUCCESS(status) || !found) > > + return false; > > + > > + return true; > > +} >=20 >=20 --=20 Pali Roh=C3=A1r pali.rohar@gmail.com --fu7yxevz6pow27fd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQS4VrIQdKium2krgIWL8Mk9A+RDUgUCWm3h8wAKCRCL8Mk9A+RD UhL9AKCa7T1iAU8Dn+wkqCW36ktmrtQf/QCfQveRhexCX3Wwgj/ikwaFcmZKEZs= =svZr -----END PGP SIGNATURE----- --fu7yxevz6pow27fd--