Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp2374618pja; Thu, 26 Mar 2020 14:11:24 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuQzmj1Qf0LWu8EZcdk1LyiRiZE9S1O5MZmV4pZUpRGczC7AVf18SYO1ehDbftEEOSQJZch X-Received: by 2002:aca:bb83:: with SMTP id l125mr1744781oif.122.1585257084614; Thu, 26 Mar 2020 14:11:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585257084; cv=none; d=google.com; s=arc-20160816; b=GXJJjGUtNWX65TqXbF9lFt1GlpP+SCoqrj6ARTOzpMCuhwHAWIJRwxwQkqjdcLJRvM oCRIf8URMtfihLcZhO37Ae4NYOT8P/fLM2TB1aDLi0rtQ1i9aQLy/+7UM0OG12ahcsZz 6liRb+5VYDoadKYjeqCg+01bPskdaRXyVdEcx1amY1oC+dXvcJabmp+ctrTJbgJowMp7 jyYZCgqDR2qFdritDXWjVPne9Aks6nBNNIIWvvZkm5Jmclu2m9rDDs4M50qYfM1xy9Ev r6kTDCWDhiBJRran5NBZs7PLuUZZTYBA8e85zgu6CbsIXWczfo6g+/aJajglCJ7EGCWZ glhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Z6cODwxPF67NW46seRnQ6baci/Z8o7XgK3ax2Na3R0E=; b=RY6UvYvoeidywu3iORQ0XTUeDbyih8Xl+eCoeO/xP2MJW8doP5pWvbcQfv7bjjpAVG kJbxDBL6tBUdzBwxrvzKQ3rHm8VUQqSWTy7wSON0BAObN+dm/Wy6gI8aCdiclWM4YMgP /QyFLDY1h+a06jpEzCt5CkMNf7rPkxHEl8MaIjwryGLRKrZY8hy/+QgglqLNKb5FEPfQ PiA1KWO7+zLd+I+P90BRPTF0dVPonRx77RafTlF1DKFriKk88XnYw1grqgNlkSLUg9nz ZhqPSaG3pKMjNU8BlpIGYq5MTJrp+vs0FgCbQC+uTmICBHK5XDHzMLSD6opmI1dmXTnr o9HQ== 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 x74si1546457oif.119.2020.03.26.14.11.11; Thu, 26 Mar 2020 14:11:24 -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 S1728073AbgCZVKe (ORCPT + 99 others); Thu, 26 Mar 2020 17:10:34 -0400 Received: from sauhun.de ([88.99.104.3]:54466 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727928AbgCZVKK (ORCPT ); Thu, 26 Mar 2020 17:10:10 -0400 Received: from localhost (p54B3331F.dip0.t-ipconnect.de [84.179.51.31]) by pokefinder.org (Postfix) with ESMTPSA id BC8592C1F99; Thu, 26 Mar 2020 22:10:08 +0100 (CET) From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "David (ChunMing) Zhou" , David Airlie , Daniel Vetter , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/6] drm/radeon: convert to use i2c_new_client_device() Date: Thu, 26 Mar 2020 22:10:04 +0100 Message-Id: <20200326211005.13301-7-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200326211005.13301-1-wsa+renesas@sang-engineering.com> References: <20200326211005.13301-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move away from the deprecated API. Signed-off-by: Wolfram Sang --- 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