From patchwork Fri Nov 23 20:07:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Dobriyan X-Patchwork-Id: 10696357 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0D2E314BD for ; Fri, 23 Nov 2018 20:07:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E60902BF83 for ; Fri, 23 Nov 2018 20:07:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D6E6F2BF85; Fri, 23 Nov 2018 20:07:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9010D2BF83 for ; Fri, 23 Nov 2018 20:07:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389203AbeKXGxC (ORCPT ); Sat, 24 Nov 2018 01:53:02 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:53067 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726017AbeKXGxC (ORCPT ); Sat, 24 Nov 2018 01:53:02 -0500 Received: by mail-wm1-f67.google.com with SMTP id r11-v6so12830440wmb.2 for ; Fri, 23 Nov 2018 12:07:18 -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:mime-version:content-disposition :user-agent; bh=r/Yg3CvGxvdxZdsJbKPacBS3VcFBEs2mywP+3+Wh4S0=; b=LZeG06ACYjpTP4qz2G4xG+vL7kW/3b+QdVPXzbeIacGL/TJ7qIQ0skCqnk36fSLVHa wICU2x45YsyFpo0hCrJNl2yc4NRTT7Gic8Sxmc502YRMseHtBPPrHucd0lmJWAHIRONG 3LrTAD4GnhAAWaV6eIMZc6ON3bDGdp4GC7moP1kLR2eBgKyR8D8IclGXEYBx7/SPKzUV igmy3h5Z2WI//d/YD4qbeHW5r7HvJfZuxip8jabCk/67vrQFFWVY6kq0O+lDLx02aIDZ P7mVtKbYQmrdAskfwpvf8JU8efswHQpiwr1JGKIoMRVHkvs+TJTdqy60lbRpxPn2cFg4 TK/A== 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:mime-version :content-disposition:user-agent; bh=r/Yg3CvGxvdxZdsJbKPacBS3VcFBEs2mywP+3+Wh4S0=; b=ngnqt6rP6iAqJx+Y6aJSR/yUEdeDjkeHuNtv7ut3nErhApvyJ3KLklHywme9a5wleE oDtz1lXDy/wuS7izRvlSUoV1he8FCGrxBhGTo4LeVBiffhhBNJlssNrQUvpjos9v1FEd NgvZTjxIwfcrryZ8KLmTdIhhEjkJS5HpuAJwWgWq8ribMxe4vuYQw5KMZFweL49tbTN/ hwXmoouJvYW903bFyeDToOxF74JqRo/+3cg5YZgBOXV3ol/XTeqPqAn41ZwpZfCGnitR gMeofGoPNMHGqQ5sYpUobd6jUnPXREQ5315CJpLKgqOARL/A4QYnI7uqC15pNG0ArXxN 9Oqw== X-Gm-Message-State: AA+aEWYISC6BZiCFeIVHMGId/zn0ait0XXqRCbWdE+dO+PBQOmp8aegd LXsdYZpfNMFI/r1AesXMQam39/k= X-Google-Smtp-Source: AFSGD/UUOgBfYFenpFleOM/mpMF2RlG8NC3hclQ8+GPCByJfro/6ixoExnVbiK69jSfDU62F75oxhA== X-Received: by 2002:a1c:62c1:: with SMTP id w184mr2894724wmb.39.1543003637454; Fri, 23 Nov 2018 12:07:17 -0800 (PST) Received: from avx2 (nat-minsk-pool-46-53-201-92.telecom.by. [46.53.201.92]) by smtp.gmail.com with ESMTPSA id x12sm29581408wrt.20.2018.11.23.12.07.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Nov 2018 12:07:16 -0800 (PST) Date: Fri, 23 Nov 2018 23:07:14 +0300 From: Alexey Dobriyan To: rjw@rjwysocki.net, lenb@kernel.org Cc: linux-acpi@vger.kernel.org Subject: [PATCH] acpi: fix argument of acpi_find_child_device() Message-ID: <20181123200714.GA16464@avx2> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP acpi_find_child_device() accepts boolean not pointer as last argument. Signed-off-by: Alexey Dobriyan --- include/linux/acpi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -101,7 +101,7 @@ static inline bool has_acpi_companion(struct device *dev) static inline void acpi_preset_companion(struct device *dev, struct acpi_device *parent, u64 addr) { - ACPI_COMPANION_SET(dev, acpi_find_child_device(parent, addr, NULL)); + ACPI_COMPANION_SET(dev, acpi_find_child_device(parent, addr, false)); } static inline const char *acpi_dev_name(struct acpi_device *adev)