From patchwork Tue Apr 3 09:49:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 132705 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp3586091ljb; Tue, 3 Apr 2018 02:49:12 -0700 (PDT) X-Google-Smtp-Source: AIpwx492brcuu3Pxskn6U6QsBDj3RawDygp7nYYrCCsEv6mc1Yus94CbY8jKlL2OQI39sLVLbkW8 X-Received: by 2002:a17:902:bb81:: with SMTP id m1-v6mr13141022pls.71.1522748952099; Tue, 03 Apr 2018 02:49:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522748952; cv=none; d=google.com; s=arc-20160816; b=c7rUuq7n+e0uDn13xWeqxYdWlZu4Vp9MmYs8BZ8bd5Q1g+g7UmskwI8R3aqZCiix2+ URuJ1jxl83ak7XE0dkyt6aoj0lDNxIN57TkfGM0fn9DEayHv8kGeNm26TsgWHXvsgCRa gkwJqWSXm4VnQP/rY8z9spQU/SdItk2Fem4O2vaEeiw1FmKWeI5R77wkqiBrBLpzp1e4 nfow6PVv1gL5VtIbaTkl/t1YG4fSqTjIxlkUAuIqp0+ugRRA4EXptvdPRrzrWOxxJ8/d hs7802DbVyHUbuh+fWburMvpiG+6yfnzjs7ppoeRI3G5relT3BDgALUdQV0V9XDD9nDo r3cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=XuEFdwIVkc6DBmqKPhj0VHQnYF0vjgBP3qoZElQI1Xs=; b=fSMffxXws8o1UfqpOlfl/aL0/aaeBnjMCJ6ZKn0wszNYxWi6Rv1KVUs4i0F/h5dmmj UK4MiUdY0kNbazY1Dx0z0AYF1KrtGQHgd8PBrxL2TS3HasjQ4xLfQLUzcsIRv4i9s7lR MBjcD9IHiD64/1KV/T+8B+3REaObB3/VLNlsFQjbxxh5aQ9J6DlOFIzKnw76xgWEpZSv Z1X7Sa5wf8myisO4PNYBhiFiTK+dSKUrn/t63Bffwafohvyx9Gtos91gt0Ji0F5HcfpD Vbk9832dLBm1KpXIo0NyPXQ7WAvGutL4lYnhHT+mA93wToF2/wUNxk15s4qv4jOszOmg UMcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X9abnIUl; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 f3si1670219pgq.625.2018.04.03.02.49.11; Tue, 03 Apr 2018 02:49:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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=X9abnIUl; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 S1754852AbeDCJtK (ORCPT + 11 others); Tue, 3 Apr 2018 05:49:10 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:46183 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754355AbeDCJtK (ORCPT ); Tue, 3 Apr 2018 05:49:10 -0400 Received: by mail-pl0-f67.google.com with SMTP id 59-v6so5393338plc.13 for ; Tue, 03 Apr 2018 02:49:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=XuEFdwIVkc6DBmqKPhj0VHQnYF0vjgBP3qoZElQI1Xs=; b=X9abnIUlVlP3uTvRv/2UpjyL2alUGEe7/OjhlfS58l/afrB1yzxuzBH0NVn0jaH7Zu jGKsyw7MjwDVxs2J+yRAG/2kmH/ENzi/DDJXvJGjnmhGyKNM1XDL+Ix6oGGdU/+i88Y+ vLvouXSUzD+9J2CFCKvsy/YLvxmfcEYxiYRRY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=XuEFdwIVkc6DBmqKPhj0VHQnYF0vjgBP3qoZElQI1Xs=; b=eSuQPXIKp9IOq4/R3RqBRRSAA63PRKt67gJIJKVqxWG66QLIhDAoOdfi9XGPLYKUWk gUC8cRQnQOsiemtHV35u2eXrPLx8A1fYSpCEGgNEnkMc6uH0ITzDNcnpHKYB3eZ5Iixq xoyKfIkuoTPJSjbW31gfCF4YJ5dMgnJ8d/a+53kuYTGA2PrnvKnogM0ScrANu7VivktC 5IjZxRmeJoKYLtNbqj4VRvLc0TSUDolf1JMsyqLK1v9m/Y/1t+PbyOC1Z1gf5r0CB17i he95dOpjO7S9Ud/kAnsVL21JmQMdfSPVkf58zM6JzV5aQCyhLt0tMmntPCsZ90TV1Nog 9Ffw== X-Gm-Message-State: AElRT7EOFfpR7ibpSIx9AnEZ21t2rPoLTJOte6ewIYkqQRvT1xhRIBK2 gWA2Ax3ftAfW+U04sfrKm9fCWQ== X-Received: by 10.101.77.13 with SMTP id i13mr8738104pgt.70.1522748949821; Tue, 03 Apr 2018 02:49:09 -0700 (PDT) Received: from localhost ([122.171.228.188]) by smtp.gmail.com with ESMTPSA id q9sm4070880pgs.89.2018.04.03.02.49.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Apr 2018 02:49:09 -0700 (PDT) From: Viresh Kumar To: Eduardo Valentin , Zhang Rui Cc: Viresh Kumar , Vincent Guittot , linux-pm@vger.kernel.org Subject: [PATCH 0/2] thermal: Minor sysfs cleanups Date: Tue, 3 Apr 2018 15:19:02 +0530 Message-Id: X-Mailer: git-send-email 2.15.0.194.g9af6a3dea062 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Hi Rui, As discussed earlier, here are two cleanup patches which fix the issues you pointed out earlier. These patches can be applied on top of the patch I sent again yesterday: lkml.kernel.org/r/bab196f91cbddca175c725ae6159c0af639bfe07.1522666398.git.viresh.kumar@linaro.org Viresh Kumar (2): thermal: Shorten name of sysfs callbacks thermal: Use DEVICE_ATTR_{RO|RW|WO}() variants drivers/thermal/thermal_core.c | 6 ++-- drivers/thermal/thermal_core.h | 13 +++---- drivers/thermal/thermal_sysfs.c | 76 +++++++++++++++-------------------------- 3 files changed, 35 insertions(+), 60 deletions(-) -- 2.15.0.194.g9af6a3dea062