Received: by 10.192.165.148 with SMTP id m20csp4768835imm; Tue, 1 May 2018 03:33:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrkMMEBsbEU+FtB1j2GAxf1oUs2l+guaEARPGzEUo7c6NJoykenVyeKun2o2gtwodwzIBVn X-Received: by 10.98.172.20 with SMTP id v20mr15413883pfe.101.1525170789172; Tue, 01 May 2018 03:33:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525170789; cv=none; d=google.com; s=arc-20160816; b=BohUioEXAciVOEA/VHtmgydIEqyxo75/JASl0/oH7ZXnbt/Goq+i7pY7lb2A11WPjr qjIaeMbqGrPfy+QzzR7B6GKnYJVZuDeg5PYuGJarBa1ZfYrQU0UghC+9Ql2ZLfropOJM STYY0QsmbXQCVoSBGZ5NzevXQv2MYB/7hwCpLl8H4TPPfhHv5MjhwnIgjJypGzw9cx16 prZyTIKYBGCunxyAPmgBBzuBrTAwMYzy7u1hzxGDYfc0cM5Qny32m8lPeLT5Wga9hZAf 1RdUS1W9isH1Gv1qbsfNgk6dYfxQs8QbedEyfSN8MUwAX9JG//sS01iYOddkAqe+prFg FN8g== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=7u5wMO5EI8PB/NVuxN4aC5IbJY0dlH+wcSenKRGtIlA=; b=AL/nrPydJaB/mDwnJ8i4vvd1CTGKNWXKB4FQRgut8dlHULpdJjkcGhGlrJBWdqgSVM tuq1wHQmQEonTCNEglXJqyitxr1JFWAlD3ApVwRNFUpr+mdRwwlB4SoTNtt1dURqFGwU TQrwrhWtmxFwfzAvbnIZ8r2cUKwS+mxGweMglrlnp4KMkOt4bGX/TpIHUevW0SdHBrTH f0ZcPRbSO59To0BHdYvoHi05HxDdAwdaKxZTboQ+CzVAYZkcuKkF/P8C/dk6jCeE8NYH xgXsE8FE7yI3GFTs9w0sVADBEP4mCjIUTZZ/8AOk0xKifnvfCc4Kx1lCdx13tiYNrQiM 7TMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BHH0zmNi; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r13-v6si3088225pgq.675.2018.05.01.03.32.55; Tue, 01 May 2018 03:33:09 -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=@linaro.org header.s=google header.b=BHH0zmNi; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754523AbeEAKbc (ORCPT + 99 others); Tue, 1 May 2018 06:31:32 -0400 Received: from mail-wr0-f178.google.com ([209.85.128.178]:35928 "EHLO mail-wr0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751920AbeEAKbb (ORCPT ); Tue, 1 May 2018 06:31:31 -0400 Received: by mail-wr0-f178.google.com with SMTP id u18-v6so10447990wrg.3 for ; Tue, 01 May 2018 03:31:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=7u5wMO5EI8PB/NVuxN4aC5IbJY0dlH+wcSenKRGtIlA=; b=BHH0zmNiGI95e3X3AfVyR22tSTl5U1RikTcOqSLZt+iSKL5Oh4sOkXQMELU5ZbKDUF W9LgKQXQknqQ5chYlqMbpD3XfrTcJjH/KYIB/77PnjulvKDJtM0yXghJtypz5GqLAHFH U/tgBb2HHtCEzYzGAPCQnVDSbrTiHdBcPq11A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=7u5wMO5EI8PB/NVuxN4aC5IbJY0dlH+wcSenKRGtIlA=; b=i4DQ9Blyiv8qJ/SOyH7C8CzZCSspD97iEeQvaIHiT6zTW3/b3Y+PY8Ah7jH9NBOeR5 euTvlJUTSK1Nnl0pHJuZ17QmjZZArQYfQHBNk9/ACtlLGRAT0FeLWy1MBvmc0joqQgmT XRNUkGCmkRZNkeMtgUUYFJsCXoUIzreeK0rqD6IVKnwMqHwhbYwvwtcIpH/T3ft/GEpm QtjKWlj9C9VOb/Ax+76ohQu8S0XvkDamPJ097kFPxjcPL6ZhaXS0tYJGIHNc2N4xlXIZ 571GzfwsqNeiptkivWJfNDnlsBpOxYrD90kqm/LtK5s9HJdvpkCGNlN6JOYxQRCdnXA5 RNKw== X-Gm-Message-State: ALQs6tDJAxrx+E+3qCBEk+p9pFNoJcjcUxtkOn3uKoNpTop42KtdNONI AAJymid3pk1gE6aRr0gKgrxWcw== X-Received: by 2002:adf:a970:: with SMTP id u103-v6mr10792952wrc.71.1525170689753; Tue, 01 May 2018 03:31:29 -0700 (PDT) Received: from mai ([37.169.202.92]) by smtp.gmail.com with ESMTPSA id l1-v6sm7149974wre.54.2018.05.01.03.31.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 May 2018 03:31:29 -0700 (PDT) Date: Tue, 1 May 2018 12:31:26 +0200 From: Daniel Lezcano To: Bartlomiej Zolnierkiewicz Cc: Eduardo Valentin , Zhang Rui , linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 14/18] thermal: exynos: move trips setting to exynos_tmu_initialize() Message-ID: <20180501103126.GK27619@mai> References: <1524743493-28113-1-git-send-email-b.zolnierkie@samsung.com> <1524743493-28113-15-git-send-email-b.zolnierkie@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1524743493-28113-15-git-send-email-b.zolnierkie@samsung.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 26, 2018 at 01:51:29PM +0200, Bartlomiej Zolnierkiewicz wrote: > * Add dummy exynos4210_tmu_set_trip_hyst() helper. > > * Add ->tmu_set_trip_temp and ->tmu_set_trip_hyst methods to struct > exynos_tmu_data and set them in exynos_map_dt_data(). > > * Move trips setting to exynos_tmu_initialize(). > > There should be no functional changes caused by this patch. > > Signed-off-by: Bartlomiej Zolnierkiewicz > --- [ ... ] > +/* failing thresholds are not supported on Exynos4210 */ > +static void exynos4210_tmu_set_trip_hyst(struct exynos_tmu_data *data, > + int trip, u8 temp, u8 hyst) > +{ > +} > + May be you can get rid of this empty function and check against a NULL pointer in exynos_tmu_initialize ? -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog