Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp668903pxb; Wed, 3 Nov 2021 10:20:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwG03/QQCOdjk4XD+yTMxnhiZ7iRJ1w0AZfO/WobzQdDLt3ggkfwW6VSCukkhQmr6GbcC36 X-Received: by 2002:a05:6602:3ca:: with SMTP id g10mr31966375iov.194.1635960047802; Wed, 03 Nov 2021 10:20:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635960047; cv=none; d=google.com; s=arc-20160816; b=iZc3I5fq5K9MorZZnsoYUQgQqHNnr1tKSzjLcNwqOC8KJFM8VyQ8RNzzIjr1bsQnHn 8tUBD/Y+i88uNuATF+v30XB2SZD4e4cGqg7l1E7TYiqVGlxm6jCH989NPAYIDToIkuqc wWzxH5ADBYraWdCvpjnRpJdWuPU3d0Rc3YWJjFJemB4Qq2uEpv4bNHCLOUaGH3rDqeCA RSJETq6AM6/7xrzy75mEgOP2/pjOjPAa3i0OViHuWFaPpHXjn+YmHXDWkqFo7Q9sAYRK igSehFU2QgMpZFXESP2VwFBGvIdODOO5b8hbc2eA1S0kI+grJmt1LjuH7s7SM6ymGr1U RLZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QmVc9Je73rZQ/JXi2kSeHK45robtjQUCtsTvhzPdR/Q=; b=N/tzE4PjvYCSvHBWT4AfutQkHkCgM0OTC1ILM6gGcWEnROHUOdCuGJyutpZdX3Aq0Y fbfsn9KScIuZcbyZVi/0oXAqVeakBG/HgS2qLR7qLoOtRxOUgPmB0/AuQh/VpTtmiWOA OI2BsgEo3y7jIvNE6nHTEgXTz5G/KxONcFqJ+t7KxN4fF/jbtZN2RYJim5KpteIYfqGv Yu2sfCzuVAUHkkaddz5Uqu6xGpSs/5HwWt5eCVKKvGDfWrtnrn/H7jkkRegNyY+tGXlA tRFETO1Ukeg9e2yHPAWTspviBg+Lnkux7jVowszRxCRcJd0UOzKXdPHVCJZbskJNilkX Hkxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=f1kzxmIL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e17si3897244iot.15.2021.11.03.10.20.32; Wed, 03 Nov 2021 10:20:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=f1kzxmIL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231314AbhKCRUj (ORCPT + 99 others); Wed, 3 Nov 2021 13:20:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231305AbhKCRUi (ORCPT ); Wed, 3 Nov 2021 13:20:38 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B68D9C061203 for ; Wed, 3 Nov 2021 10:18:01 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id y196so2556689wmc.3 for ; Wed, 03 Nov 2021 10:18:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=QmVc9Je73rZQ/JXi2kSeHK45robtjQUCtsTvhzPdR/Q=; b=f1kzxmILHxk6ryEldtMA/STMiylac96ou/kUudthn9UoTm1IWCCwnmHEwKaBbm+mrk qG0XG8lcutYXlOXFoi8GSwcV1qKdrVA/KNM4K2Ba2aPGJbQo38gReTEG8jt1cvhLA/3A uNtFn0QgRGcvb0zOkD6TQsvAcG3NDbyjcOw9XaydNhzLKEQOB4DAtxDs+BqP6N9bSmoV vfTiDSVUnLTyP/U5b0swS3Ih2G9wzRztSRqCTaJ4fIjtuOg5a6/0Rm8lLKITUfMZPRg8 6KgBA8zosImuHahkRQi9Q0ecFSEw+RWytxDe9DBpsu3UFSfm1owaO+sPWVRLBF9u1ScQ GDBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=QmVc9Je73rZQ/JXi2kSeHK45robtjQUCtsTvhzPdR/Q=; b=GSRfx0oh4iy9zC4E4cCf1ZqKwhcGkVVgPim3l0n2ng0ppK/ISVMNv0Nstltr/GRfJR eS+R5/rxXLcWSxtBVp534NNTksF0UY9qBf5aJIWw8JFuiwJpDTZoBllfTEQO9b78P+z3 l9pHBC3VtCxBPNMxmWgp2ouA7AIJhBq6GvlTUjtrsZBr5xLI3K3RJ/VwmZz5utaN49GS NFMfOKMOOuxjcCEQ5VlUHJItczOkDTQU745VXuodqImUqxyhjflAyYRPVt5Mh/J4Iyoc J2b6Dilk7Hy36DSG3l5MG9k+3/6rS4Faybkp1vF/pZBXx2oe8mXNNSKar2jtXMFKcFeR Iglw== X-Gm-Message-State: AOAM533AsVt8Ff0wbp4wMSwtfbB8TYMxqhO8MTUQFqVxl+qnhMBA909Q MUzGeIn0rYZObnYm8IouxnYBSQ== X-Received: by 2002:a1c:9dc7:: with SMTP id g190mr17055937wme.130.1635959880277; Wed, 03 Nov 2021 10:18:00 -0700 (PDT) Received: from maple.lan (cpc141216-aztw34-2-0-cust174.18-1.cable.virginm.net. [80.7.220.175]) by smtp.gmail.com with ESMTPSA id b10sm2637233wrt.36.2021.11.03.10.17.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Nov 2021 10:17:57 -0700 (PDT) Date: Wed, 3 Nov 2021 17:17:56 +0000 From: Daniel Thompson To: Hans de Goede Cc: Lee Jones , Jingoo Han , Tsuchiya Yuto , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/3] backlight: lp855x: Add support ACPI enumeration Message-ID: <20211103171756.wxthncse2f4syeiz@maple.lan> References: <20211102225504.18920-1-hdegoede@redhat.com> <20211102225504.18920-3-hdegoede@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211102225504.18920-3-hdegoede@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 02, 2021 at 11:55:04PM +0100, Hans de Goede wrote: > The Xiaomi Mi Pad 2 tablet uses an ACPI enumerated LP8556 backlight > controller for its LCD-panel, with a Xiaomi specific ACPI HID of > "XMCC0001", add support for this. > > Note the new "if (id)" check also fixes a NULL pointer deref when a user > tries to manually bind the driver from sysfs. > > When CONFIG_ACPI is disabled acpi_match_device() will always return NULL, > so the lp855x_parse_acpi() call will get optimized away. > > Signed-off-by: Hans de Goede Reviewed-by: Daniel Thompson Daniel.