Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp113856pxb; Wed, 20 Jan 2021 02:35:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJwfjmIX0CD5vGGwqshpqOpEfHNYxKZI9mNRbHwHKpBQ40EnRvpEUJTGUbCm40x7HGgkUcdN X-Received: by 2002:a05:6402:d05:: with SMTP id eb5mr6664037edb.143.1611138848577; Wed, 20 Jan 2021 02:34:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611138848; cv=none; d=google.com; s=arc-20160816; b=QaMzWPrVmrE1Alf+NHRj5kJgBPPzwq9+qTlv5POUF3+AVHnYAZbHMt4YlCAYydaB7w HOVyKpZFD6c9tGMOr6A1q4yCAiqN1cdJscb1s+X+mHADwWIB+Kz61cqdALgMzAY/S052 t3OwPHvxmMyY7PkSjt94Pr8We59BYJ0mkOS4nsT5FEpGtoqo6ZC8+nbCEdwftyaYEUlO dINzEZ2SfLH9AdKMhfOhvj2tmI+soGeaJPSTDHWNcreIYZKdUYtjuWUYX2sFv6Xwi1hG cLdbKtDLOFBSP6nPXo2b0X2bkSuFR8XwvI7EuXTcw3F6Sns4kX2WkRIt/MnIr2i9rc1x 74xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=3cMPXgGKn9KcSz1orpznqtODBy5qNer/ihVn8Z7C4bU=; b=WI3k2XHg+X8fLewwF2fkREBtbMUKXtLu4xcdxDMHVx5dKO6ElfD+itGxIGPc/rAxU/ 1SphcCfaBgH3Kt3hu4e8Bp8Gt/r8RTSaW1s2Y1WvVWa1CvnVLEzxB7n/cPjwY96OZqhy zUoMvgv+4IzXt3Z8UC81TJMvkhukWxcBYh+5vJTt7cvXEdesXJGSKRn4Yfu/bylK2wVt fvIsyaWNEqRTqDLC0aUZfH3fIxO58pxpz9ZQg4BBqHef+Or6xmuigsdJwlzLsZGt4JXJ hxzlI2Xn6RoZP0EeZxFawIozIhtqC2/Ul9Z+6DhsasW/kHMBRAccBpyHL6P+NTlPuVoN EOoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=eP2mmFyM; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z17si582259ejc.207.2021.01.20.02.33.44; Wed, 20 Jan 2021 02:34:08 -0800 (PST) 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=@cirrus.com header.s=PODMain02222019 header.b=eP2mmFyM; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732526AbhATKTA (ORCPT + 99 others); Wed, 20 Jan 2021 05:19:00 -0500 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:28380 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730929AbhATKDq (ORCPT ); Wed, 20 Jan 2021 05:03:46 -0500 Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 10K9voSf022653; Wed, 20 Jan 2021 04:02:53 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=PODMain02222019; bh=3cMPXgGKn9KcSz1orpznqtODBy5qNer/ihVn8Z7C4bU=; b=eP2mmFyMdNKz+7w5BAOD6hIfBQ/4n08GaWSnkNEN5zoDKLurzm2xqv5+ZnJPAYaK1/3v 8G8U+OdfOYTpI2lD7abf1aRFYyzjL/9s3YGRAYs3eBqf7To7RcEPjhpXxToe0f+YbWR1 JC/qUUR71k3OdtnRczL5eIz4qb5kJqcm2LX9+WLO57HeR7/Vk1o3Pxw9vb2IOgzFznG9 hEVq/O8qtrw8TXiRkda2hT2GR1NmKs1Eqd+fudWAz1+9IoXqfebAHCx5ao0d8Y3kIiOQ GpFruTEd3rKMapFPImUWZwQYA9Bb1KuSTB6MN44TUkqIo0uErOIEQ+6miATtlbgLQAnc rA== Received: from ediex01.ad.cirrus.com ([87.246.76.36]) by mx0a-001ae601.pphosted.com with ESMTP id 36692r8gfp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 20 Jan 2021 04:02:53 -0600 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Wed, 20 Jan 2021 10:02:51 +0000 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.1913.5 via Frontend Transport; Wed, 20 Jan 2021 10:02:51 +0000 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 907C045; Wed, 20 Jan 2021 10:02:51 +0000 (UTC) Date: Wed, 20 Jan 2021 10:02:51 +0000 From: Charles Keepax To: Hans de Goede CC: Lee Jones , Cezary Rojewski , Pierre-Louis Bossart , Liam Girdwood , Jie Yang , Mark Brown , , , Andy Shevchenko , Subject: Re: [PATCH v3 2/5] mfd: arizona: Replace arizona_of_get_type() with device_get_match_data() Message-ID: <20210120100251.GC106851@ediswmail.ad.cirrus.com> References: <20210117212252.206115-1-hdegoede@redhat.com> <20210117212252.206115-3-hdegoede@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20210117212252.206115-3-hdegoede@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 malwarescore=0 mlxscore=0 clxscore=1015 lowpriorityscore=0 bulkscore=0 phishscore=0 spamscore=0 suspectscore=0 mlxlogscore=743 priorityscore=1501 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101200056 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 17, 2021 at 10:22:49PM +0100, Hans de Goede wrote: > Replace the custom arizona_of_get_type() function with the generic > device_get_match_data() helper. Besides being a nice cleanup this > also makes it easier to add support for binding to ACPI enumerated > devices. > > While at it also fix a possible NULL pointer deref of the id > argument to the probe functions (this could happen on e.g. manual > driver binding through sysfs). > > Suggested-by: Andy Shevchenko > Signed-off-by: Hans de Goede > --- Acked-by: Charles Keepax Thanks, Charles