Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2536119ybb; Fri, 27 Mar 2020 07:26:34 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsY2IrLrsJuIWJGb0Thj+7tPjQzDP70nsqCRjDw6L7ItviLiP/CGidsWN0yX6WZUuMS46OQ X-Received: by 2002:aca:4997:: with SMTP id w145mr4240549oia.58.1585319193938; Fri, 27 Mar 2020 07:26:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585319193; cv=none; d=google.com; s=arc-20160816; b=Dd6sz/4FdFlfZrzsZgkooZ520BAUCjLOsI2r7FDxN0E+NWAGpX7hJxB/RLEhqKDTv6 8K+fuMO/EON2V+lCEutA3Edp6Rk5V0Ldo5TxhwdER10L8m94zlvKKvioBBQm0V0E7j5F M7IvajhzIIz/lD4016jEhGk7xKeePctZr+gKBe+8cK0Vbg1gON4gYuMRet3a/61e9VAs bxRPf0DCGXqXU0+KXHx88togmeXvazlUAjHIxAeJCZ9DkCWEEy0TbV8x0EFQjosfUh54 m7kXEMooMW8aityHvsAwbD/Hl7W3xwuYg4ozfb5pOyo8zWMgb11A4THtQjPRuJEPJRTv eaEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=peP7S2GwPuZ1IKo8FYOZ1jeo4ELir9xxjxU6GqZTgX4=; b=qzrvoOZ7TN4OMKTTO0TZzcpHowEGpiOBcud5Qi49BuT3Gh0Ou/NrqB9rAkhIQHeN/8 7fAFMYs+kujL3Ifp0RAhlhvagMt/ZGZO4LPmC8aaUCQcj83TIoQEJ49HrFgprHChHtmc LFcB1+LSdOyjAYcMQ4N8T7URLeGdUUuq/mM1R4hVvfbfXL9yQVdD3jucyheSgKLhstuI ITwODEwvrx2q3ukm7ciN/WKpgY8YDWwo5tfx2WnWKpoNrN4qu1WwZsjN1ZC9tt045baL uQusvwfQZv9rUoXRhsXKZY35fKnq10tWBWyrv/FiAG1AxVSWdwPl6DFXgxru902y2oTa /Xsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="StriVB/9"; 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=QUARANTINE 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 y139si2539809ooa.14.2020.03.27.07.26.19; Fri, 27 Mar 2020 07:26:33 -0700 (PDT) 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="StriVB/9"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727354AbgC0OZa (ORCPT + 99 others); Fri, 27 Mar 2020 10:25:30 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:34146 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726333AbgC0OZa (ORCPT ); Fri, 27 Mar 2020 10:25:30 -0400 Received: by mail-wr1-f66.google.com with SMTP id 65so11672224wrl.1; Fri, 27 Mar 2020 07:25:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=peP7S2GwPuZ1IKo8FYOZ1jeo4ELir9xxjxU6GqZTgX4=; b=StriVB/9TjnZWqc9kH0lHNwEqOCxpb0m9aQdojCVw1TQU0oy/QZmPbaIfR9bNuuDue 7QSZAxlsnLBkfPYxxgTtuTR7SG4++YVzHqCtUdty6s6uiOdYYad77k+0Xw9ASLhjFAAm ay5WyECrlMw2Zm2a/hdNBiz8O01W0fYEyoGhfJ8zJLc35IS25jRq/W8EnoIxlLXuIgiW V1SW9UcztB62fpCyNNq7iXdVJh4K+Zc68m3LvFEQECRHDZzeIjsZiGDE2NW0a6PXcRRq OCYALWXPpOprqJaK8D3HOoOH8pGbJ6wveEo4cTPqYtePW5d1v4IWdsTgpPwJCfJidDUl 5JTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=peP7S2GwPuZ1IKo8FYOZ1jeo4ELir9xxjxU6GqZTgX4=; b=dSz+k0TKUeKj25fxOFLpomp8IIb3GbRqn8oY7PB8lBx0VT4spAii/UFvhfOs6FD+js qwcjq/pC41uhiRFoo1T48sE0ug7YPTkecSXZjPcFyTNDSxTY/TILVVqHFlohehysu+dq v5DH00bpJuxwHqasJstPJWEtRoh0ylAEGGgB12QnLagiunM3Ku7y9vsBKnia9tULH1Sf DoLGsI029dBqsRTP0Kk7y0R56mcg7ujHfuGnJsVzWgpEsTY8efEKAd59lCZskrjLbQxd ui6GoWLLWEctKrI6tRCCqKlWqVu3e2vILf48tWKjXI/dv/nW+tMSAjq2JoB58WTseDDm PoaA== X-Gm-Message-State: ANhLgQ0iWCb64s57HqnAInFUMUZ3LN+YhzNBUf1M5ZMTbwldYb5t8/v8 wsGfcRFnMnipylNrL33Vnt5Hb3ZBGKTO93sdA+E= X-Received: by 2002:a05:6000:111:: with SMTP id o17mr15146245wrx.111.1585319127768; Fri, 27 Mar 2020 07:25:27 -0700 (PDT) MIME-Version: 1.0 References: <20200326211005.13301-1-wsa+renesas@sang-engineering.com> <20200326211005.13301-7-wsa+renesas@sang-engineering.com> In-Reply-To: <20200326211005.13301-7-wsa+renesas@sang-engineering.com> From: Alex Deucher Date: Fri, 27 Mar 2020 10:25:16 -0400 Message-ID: Subject: Re: [PATCH 6/6] drm/radeon: convert to use i2c_new_client_device() To: Wolfram Sang Cc: Linux I2C , David Airlie , LKML , amd-gfx list , Maling list - DRI developers , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 26, 2020 at 5:35 PM Wolfram Sang wrote: > > Move away from the deprecated API. > > Signed-off-by: Wolfram Sang patches 1,6, are: Acked-by: Alex Deucher > --- > drivers/gpu/drm/radeon/radeon_atombios.c | 4 ++-- > drivers/gpu/drm/radeon/radeon_combios.c | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c > index 848ef68d9086..5d2591725189 100644 > --- a/drivers/gpu/drm/radeon/radeon_atombios.c > +++ b/drivers/gpu/drm/radeon/radeon_atombios.c > @@ -2111,7 +2111,7 @@ static int radeon_atombios_parse_power_table_1_3(struct radeon_device *rdev) > ucOverdriveThermalController]; > info.addr = power_info->info.ucOverdriveControllerAddress >> 1; > strlcpy(info.type, name, sizeof(info.type)); > - i2c_new_device(&rdev->pm.i2c_bus->adapter, &info); > + i2c_new_client_device(&rdev->pm.i2c_bus->adapter, &info); > } > } > num_modes = power_info->info.ucNumOfPowerModeEntries; > @@ -2351,7 +2351,7 @@ static void radeon_atombios_add_pplib_thermal_controller(struct radeon_device *r > const char *name = pp_lib_thermal_controller_names[controller->ucType]; > info.addr = controller->ucI2cAddress >> 1; > strlcpy(info.type, name, sizeof(info.type)); > - i2c_new_device(&rdev->pm.i2c_bus->adapter, &info); > + i2c_new_client_device(&rdev->pm.i2c_bus->adapter, &info); > } > } else { > DRM_INFO("Unknown thermal controller type %d at 0x%02x %s fan control\n", > diff --git a/drivers/gpu/drm/radeon/radeon_combios.c b/drivers/gpu/drm/radeon/radeon_combios.c > index c3e49c973812..d3c04df7e75d 100644 > --- a/drivers/gpu/drm/radeon/radeon_combios.c > +++ b/drivers/gpu/drm/radeon/radeon_combios.c > @@ -2704,7 +2704,7 @@ void radeon_combios_get_power_modes(struct radeon_device *rdev) > const char *name = thermal_controller_names[thermal_controller]; > info.addr = i2c_addr >> 1; > strlcpy(info.type, name, sizeof(info.type)); > - i2c_new_device(&rdev->pm.i2c_bus->adapter, &info); > + i2c_new_client_device(&rdev->pm.i2c_bus->adapter, &info); > } > } > } else { > @@ -2721,7 +2721,7 @@ void radeon_combios_get_power_modes(struct radeon_device *rdev) > const char *name = "f75375"; > info.addr = 0x28; > strlcpy(info.type, name, sizeof(info.type)); > - i2c_new_device(&rdev->pm.i2c_bus->adapter, &info); > + i2c_new_client_device(&rdev->pm.i2c_bus->adapter, &info); > DRM_INFO("Possible %s thermal controller at 0x%02x\n", > name, info.addr); > } > -- > 2.20.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel