Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0A6AFC64ED8 for ; Mon, 20 Feb 2023 10:50:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231724AbjBTKuw (ORCPT ); Mon, 20 Feb 2023 05:50:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230107AbjBTKur (ORCPT ); Mon, 20 Feb 2023 05:50:47 -0500 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9183193CF for ; Mon, 20 Feb 2023 02:50:45 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id h16so3119977edz.10 for ; Mon, 20 Feb 2023 02:50:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=v6vcpwkMfGzN9vRBy1DWixkIdHmHqwgh90gCl6PUprg=; b=2xvrF9DiUf1wVU0sbqrSYqYY/J46TTjyn+AFw/ZJQqaX3vaiVjroK29XQpSQ6X4uXU CqR4k/pUUZHOSeaI+2wOWIQjUPUSZyXIcID9R9tTcT2YRa8wOIn6Dr7h/KfnC4K8gosm MjsuU4bRsCeDvCX9duE+M0rYbikkZcSx34NMdWH2ukJcd2yPcDpH/TO2v4fldisKBHx9 47OXR1yCXBKWIPniESJq28E7wJIa70ouQZWfqRzKxKCK18+ulsnyeVsHgphI0aIfkCZb KX2GItPNwYdjRHdjOaNayLCtcpX4x8kYqRhh3/PmApG6U1Rd3ahvqymiAwATdT78ZjHP J+UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=v6vcpwkMfGzN9vRBy1DWixkIdHmHqwgh90gCl6PUprg=; b=jnhc5LASHbUMugKfBAQPN2w+Ihf+GlnIhv9kzmBElf8MfG7k0Dr8LQ4WAgaWXgIVuK WHjZVoxSQ6Y/v/y6tx09RdvBq0xoT3QH3HerkecCLnlf0xe2i/BJynLW2+J5RURxrAWh HrBaWeTHOp/wK4tpGW1b3GJGfHwsoJf2T+TxpraayEf92n/G6rEs2KV5fbqdTON6gzzb MEoVVYgE2o2CV6h0sDxFNkV3l4eJdAfd3Vt/ofXBtZKl+0+Xabvl9bl8zkKoTxMhutet ukrZIxvtsGuPrFjxlpXssaQjQNWx5B8spO/1p9oJKok06KKyk0Pn3E+et7FSzymyHLwU fE9Q== X-Gm-Message-State: AO0yUKVYrgFOcE6Z2bufbH/RZ/xoba2SbWHEMLbPii7mFHfkN1LI58W3 tMbXA6WU/5S8zQzsf86Tz22VPKl8/oFSflTKFRBxTg== X-Google-Smtp-Source: AK7set9188hMr+cpqZ98qqvqAVQNUFC+YjeVhfGQ2IlXTuOYn1ExJNxWmgV+aqN4Ov3E6ql2A1G9+xnfD6WaYWvd8c4= X-Received: by 2002:a50:9fa8:0:b0:4ad:6052:ee90 with SMTP id c37-20020a509fa8000000b004ad6052ee90mr1324993edf.7.1676890244471; Mon, 20 Feb 2023 02:50:44 -0800 (PST) MIME-Version: 1.0 References: <20230219143657.241542-1-daniel.lezcano@linaro.org> <20230219143657.241542-7-daniel.lezcano@linaro.org> In-Reply-To: <20230219143657.241542-7-daniel.lezcano@linaro.org> From: Balsam CHIHI Date: Mon, 20 Feb 2023 11:50:08 +0100 Message-ID: Subject: Re: [PATCH v1 06/17] thermal: Don't use 'device' internal thermal zone structure field To: Daniel Lezcano Cc: rafael@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Amit Kucheria , Zhang Rui , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Eduardo Valentin , Keerthy , Matthias Brugger , AngeloGioacchino Del Regno , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "open list:TI BANDGAP AND THERMAL DRIVER" , "moderated list:ARM/Mediatek SoC support" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 19, 2023 at 3:38 PM Daniel Lezcano wrote: > > Some drivers are directly using the thermal zone's 'device' structure > field. > > Use the driver device pointer instead of the thermal zone device when > it is available. > > Remove the traces when they are duplicate with the traces in the core > code. > > Signed-off-by: Daniel Lezcano > --- > drivers/thermal/mediatek/lvts_thermal.c | 4 +- > diff --git a/drivers/thermal/mediatek/lvts_thermal.c b/drivers/thermal/mediatek/lvts_thermal.c > index 86d280187c83..a65a81114cc5 100644 > --- a/drivers/thermal/mediatek/lvts_thermal.c > +++ b/drivers/thermal/mediatek/lvts_thermal.c > @@ -305,7 +305,7 @@ static int lvts_set_trips(struct thermal_zone_device *tz, int low, int high) > * 14-0 : Raw temperature for threshold > */ > if (low != -INT_MAX) { > - dev_dbg(&tz->device, "Setting low limit temperature interrupt: %d\n", low); > + pr_debug("%s: Setting low limit temperature interrupt: %d\n", tz->type, low); > writel(raw_low, LVTS_H2NTHRE(base)); > } > > @@ -318,7 +318,7 @@ static int lvts_set_trips(struct thermal_zone_device *tz, int low, int high) > * > * 14-0 : Raw temperature for threshold > */ > - dev_dbg(&tz->device, "Setting high limit temperature interrupt: %d\n", high); > + pr_debug("%s: Setting high limit temperature interrupt: %d\n", tz->type, high); > writel(raw_high, LVTS_HTHRE(base)); > > return 0; for MediaTek LVTS : Reviewed-by: Balsam CHIHI