Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2590730ybb; Fri, 27 Mar 2020 08:26:20 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt4r6UeCxKTTq8LoMaKUGq760dO2zqtEpTHdp499Zr8rFI0I00MozPDV8/tjOoMfwgLhVdL X-Received: by 2002:a05:6830:1ac1:: with SMTP id r1mr11171359otc.139.1585322779798; Fri, 27 Mar 2020 08:26:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585322779; cv=none; d=google.com; s=arc-20160816; b=vt+VJmA9f0aMnxQwrFfsHJ0hDB5+IXrTV9IaoIaanqK7XZSGf3cM+JWl56Aw9Ifm7g 2/MJ/8zoQJ5WDJny1+YCnlnoEu5+OQ6QYqZGswtnZiUIzL/I6hFOZ9KykumeOgJ9KTsp RhZ8symtNgUUo0Xeggl3DRWhZVyMjFXpLJ6P5JCKhfmAzJRpogdgbX07FQscy1DhtA8w cZYdoz4grN0p/sqjrwA6GRfgHrWpiNmNH2KH8FVjUNLFhVdPmcITA+ToPKLABtaoNKKq Va6VyoMuTgeN5zmHZiqC7A+OPLhNsPbCECaNE9qCsOHFOv2uK6ivqAv9hw00L7VZ+qKe a8lg== 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; bh=HslVbK/pN7NzV3wXRWfagms0V13i0zDZqkkeNcNgjXI=; b=xrgbdTVHKbS4R3dRVgG2OURbxbFfvXnMsMMYqwTGbwf5vlB8xCTX/XfE49DzbTCO79 t3znViOeDweu1Ojix02PAxT135XdSZ/M8yzh/Z9FfRub+yQmVFZRzpsdqZFrKPOT6MjR 3VyUpBAUnqqDCrEXapGM9SnMYzsxHh6O+lxKYIesNfuJAeQeQ+fuVuQraGr8fKlGLF/A 1F1rpydRU/GbjIbddOcyQoOtex4ToLDclnFOEZls8SeoYJKjukiv6BcccgwHxSaAnMHq 5YcPsgLGcquKqbhyoBp2C6JqN33wCQEwjPBBCnE4jLYg+PHcaVzHi05UU4oOGR1Yvlcc BHng== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v61si1565428otb.20.2020.03.27.08.26.06; Fri, 27 Mar 2020 08:26:19 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727335AbgC0PZn (ORCPT + 99 others); Fri, 27 Mar 2020 11:25:43 -0400 Received: from asavdk4.altibox.net ([109.247.116.15]:44328 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726770AbgC0PZn (ORCPT ); Fri, 27 Mar 2020 11:25:43 -0400 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk4.altibox.net (Postfix) with ESMTPS id 7C19D8054E; Fri, 27 Mar 2020 16:25:36 +0100 (CET) Date: Fri, 27 Mar 2020 16:25:35 +0100 From: Sam Ravnborg To: Alex Deucher Cc: Wolfram Sang , amd-gfx list , David Airlie , LKML , Maling list - DRI developers , Linux I2C , Alex Deucher , Christian =?iso-8859-1?Q?K=F6nig?= Subject: Re: [PATCH 6/6] drm/radeon: convert to use i2c_new_client_device() Message-ID: <20200327152535.GA2191@ravnborg.org> References: <20200326211005.13301-1-wsa+renesas@sang-engineering.com> <20200326211005.13301-7-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=XpTUx2N9 c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=LDBv8-xUAAAA:8 a=zd2uoN0lAAAA:8 a=e5mUnYsNAAAA:8 a=np1NKRlxnyeI6rDnu7wA:9 a=CjuIK1q_8ugA:10 a=DZeXCJrVpAJBw65Qk4Ds:22 a=Vxmtnl_E_bksehYqCbjh:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 27, 2020 at 10:25:16AM -0400, Alex Deucher wrote: > 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 Should we commit all to drm-misc-next? Sam > > > --- > > 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 > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel