From patchwork Thu Oct 29 07:48:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Coiby Xu X-Patchwork-Id: 11865413 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0A13214B4 for ; Thu, 29 Oct 2020 07:49:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D5B3F20EDD for ; Thu, 29 Oct 2020 07:49:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HvFCJ6ar" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732020AbgJ2Htd (ORCPT ); Thu, 29 Oct 2020 03:49:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731857AbgJ2Hta (ORCPT ); Thu, 29 Oct 2020 03:49:30 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA8CCC0613CF; Thu, 29 Oct 2020 00:49:29 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id h6so1666744pgk.4; Thu, 29 Oct 2020 00:49:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CMlFtGrdeVtaOx7nt5ZPArRY2VyBCH0dW+8eWG0qLW4=; b=HvFCJ6arHGB/fbzycTvZdkLR6Xp9z2jfSltOBnO96Z18/92E6aFgxyuguq82Ti3+NK 4k4bFP236wuKqrDH4WCE1n8+TxMiSg12mHN8EiNzvyXGclE2fejGINwDnzoXz2lzZKMB ZfCVsVXuhSn1xqtTOwpiTGEhHyCJcPAgNXbwfN0bEcjzrwwO4h+azi4V0WSRPZD3gh9x /aYOmFS4/u7SIbgJrvONi1XJMYXSB6fzv7waAAas2p6PQVL7IQ0ePmdvFIWPbP+2HDpr Al6q3bMnu4L+h7NiXPy2B10ohFfgPMlYRqFPwpWylW0ImRF5Dwv70uuEai+FqDTgZNeG 1E8w== 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:mime-version :content-transfer-encoding; bh=CMlFtGrdeVtaOx7nt5ZPArRY2VyBCH0dW+8eWG0qLW4=; b=GrIIp5AZm7Na59+K1mtENBvPRuNixLrSJBbtTGNwlZxfKZhyLN7ebDnbOoOfIFwCDW wPbk5QYSgWZ4dSe9h8IF6w4aG7xXAyG0K/4L/iN3EpcL1bbeYwX2DPN+5jnn/Rl9awcQ mqLO+CIo4WoY0WTm6sEUpZPR+J7egWFQF110xA9G7WbnHMCWgXS39aY0NjHfEglc5XPI Yyiu/8nBzgLs+lzLxSL5jpfs63EhyFLuzzNVN/WbintLnrzVt4x9DsF1fmpSg5rHU8/w vX7r/XpbHnyqhkaZsIMUnKh/98IJ1tDl96PXhEzwdXw796sAN/Ojqv/tXmMtvt/5yRy6 an2Q== X-Gm-Message-State: AOAM533lgL+p8cZ17zolzGl6Ua8AfkMFziZVHG3G7YtnUkR59Cic7EdS YCs0Tmt8U4v6dwIanBnbOJ4= X-Google-Smtp-Source: ABdhPJzkt+a+hoR+OTQD3e8JDRRM7aCEAIYhmd/wEUueauxfJPE6sVr8v+gy77ie6RtQm5OU9+dR1Q== X-Received: by 2002:a17:90a:d30a:: with SMTP id p10mr2972316pju.15.1603957769401; Thu, 29 Oct 2020 00:49:29 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id o65sm1684688pga.42.2020.10.29.00.49.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:49:28 -0700 (PDT) From: Coiby Xu To: Lars-Peter Clausen Cc: Jonathan Cameron , Peter Meerwald-Stadler , linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 01/15] iio: accel: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:48:56 +0800 Message-Id: <20201029074910.227859-1-coiby.xu@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org SIMPLE_DEV_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- drivers/iio/accel/da311.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iio/accel/da311.c b/drivers/iio/accel/da311.c index 3b3df620ba27..55d4891556ca 100644 --- a/drivers/iio/accel/da311.c +++ b/drivers/iio/accel/da311.c @@ -263,7 +263,6 @@ static int da311_remove(struct i2c_client *client) return da311_enable(client, false); } -#ifdef CONFIG_PM_SLEEP static int da311_suspend(struct device *dev) { return da311_enable(to_i2c_client(dev), false); @@ -273,7 +272,6 @@ static int da311_resume(struct device *dev) { return da311_enable(to_i2c_client(dev), true); } -#endif static SIMPLE_DEV_PM_OPS(da311_pm_ops, da311_suspend, da311_resume); From patchwork Thu Oct 29 07:48:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Coiby Xu X-Patchwork-Id: 11865417 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ED98914B4 for ; Thu, 29 Oct 2020 07:50:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C8BDC214DB for ; Thu, 29 Oct 2020 07:50:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JaqJf3np" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732030AbgJ2Htt (ORCPT ); Thu, 29 Oct 2020 03:49:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731783AbgJ2Hth (ORCPT ); Thu, 29 Oct 2020 03:49:37 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8573AC0613CF; Thu, 29 Oct 2020 00:49:37 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id w65so1669834pfd.3; Thu, 29 Oct 2020 00:49:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XJJATTLMG2kRLmAM2tHn94nYgGt4dPLhfdTdqDPw4OA=; b=JaqJf3npz8P4CJmHUBoIM9v5JqYWF+80oICAvGhYa46KcXnT9e3GvWK4fUmuuYCHrR /frkXq0KRnuZf/KDzSmR5XQ5MiAJ1TgR39t+Wn0yiD2CcE8WTcsza+kMRfYgjMDouRX5 lsMw1UBzppRoBWNwfUwzzCQ+j2zjXi0d0D215IjQJ2WAPL7bgx6hbyk8HX/2x2/29iWe AlUVi9UrvsavaAFBTlif3tohSFwBuQO0CiRnJlgqUmtNdRoPUewDw8Uchids/0tKmYHe G31hGEziBCkfsrsVxrhfVROalNc0aj4TxyFTQjl9d2+vsKvNzl1+JXIAvAcfn22Y0mUo onyg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=XJJATTLMG2kRLmAM2tHn94nYgGt4dPLhfdTdqDPw4OA=; b=GC/cYlfwpR+vla9LnM5xntZvkeeA4r5wKbIC9yIjqSi88ZALo6gceom/s270T8UH9t noHy397h+wpRJdxpIysBfBYAIJv7NHEtjBlcG1XayD5mrl9UzWIjXaMRaJ+AS0PG9U5R YeqmfmkQnrS02Df/GS99E2McWeQjBm569XzlvJ41WI5dFOgVgzJT4WW/hHFgP5wbjnon mqqbb0MxbUJU2Jd5O3T70zSpqtRgYKhvyLDuVr7gYWr0SVoBd1ACVGQlh7uPJxjOI0In 7Gc+Pcx4Vk98PpMH2CSKc/sUr5FeGxQ47FgAgooavOdp+c3Nd1P5ynY/wY20tSLK/1xP GV0Q== X-Gm-Message-State: AOAM5314KtJ7ruHjhKpoTM1FP4nnY/iQo2X2VcdInMI40rHIqeVSsEnY UiGRIfOwMv+FxDK9JcRZ1UjiCKARSItUWX2K X-Google-Smtp-Source: ABdhPJyUvX8REyEq1gw1gZjvui5bDOwIWGZCj5tTeqoeRJ82kFRlzosb8oIsvDVlZFMvUf+Qcvu+pw== X-Received: by 2002:a17:90a:aa91:: with SMTP id l17mr2973601pjq.198.1603957777159; Thu, 29 Oct 2020 00:49:37 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id i2sm1897422pjk.12.2020.10.29.00.49.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:49:36 -0700 (PDT) From: Coiby Xu To: Lars-Peter Clausen Cc: Jonathan Cameron , Peter Meerwald-Stadler , linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 02/15] iio: accel: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:48:57 +0800 Message-Id: <20201029074910.227859-2-coiby.xu@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201029074910.227859-1-coiby.xu@gmail.com> References: <20201029074910.227859-1-coiby.xu@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org SIMPLE_DEV_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- drivers/iio/accel/da280.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iio/accel/da280.c b/drivers/iio/accel/da280.c index 4472dde6899e..c82d241491dd 100644 --- a/drivers/iio/accel/da280.c +++ b/drivers/iio/accel/da280.c @@ -160,7 +160,6 @@ static int da280_remove(struct i2c_client *client) return da280_enable(client, false); } -#ifdef CONFIG_PM_SLEEP static int da280_suspend(struct device *dev) { return da280_enable(to_i2c_client(dev), false); @@ -170,7 +169,6 @@ static int da280_resume(struct device *dev) { return da280_enable(to_i2c_client(dev), true); } -#endif static SIMPLE_DEV_PM_OPS(da280_pm_ops, da280_suspend, da280_resume); From patchwork Thu Oct 29 07:48:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Coiby Xu X-Patchwork-Id: 11865419 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9E0D514B7 for ; Thu, 29 Oct 2020 07:50:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7602D214DB for ; Thu, 29 Oct 2020 07:50:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="XmsZImdR" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732242AbgJ2HuG (ORCPT ); Thu, 29 Oct 2020 03:50:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731764AbgJ2Hts (ORCPT ); Thu, 29 Oct 2020 03:49:48 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44658C0613CF; Thu, 29 Oct 2020 00:49:48 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id w21so1652732pfc.7; Thu, 29 Oct 2020 00:49:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Qcp90+f/8gUugmcEijCiUNWJQTlwDOq2UlIDoO0BJa4=; b=XmsZImdRu0jjMLdVacgcIq8eULPMQhyENNOOOmmiOr+QJguVGhjBWIq1BEOmZflCT3 pVij/myxb+ih4tRgDa7RUotUddvNYgKe1wmTjS5v8C27oXUvYN/J+dqr5Ft6dQBz0YJp 4bxzhyN2Y8p9dFk95SrqR6WZ6vcMMrxtVpb5GrUxFSiXpuXYJP840PoaTePnPY7Blakw ej4nRLFDP+++rYbi5F+o1nElWWuQn8Zz/IHYRKlQ6XiQ0UhGA9gBXJJUogq0q1TpIqj1 evk/JxgUpCexvGkHbCTJT5jbAjLXsBtwKHWQX9vIhrNmpsNxQ7lorrsGHuvPDg2Qjhkh 8Heg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=Qcp90+f/8gUugmcEijCiUNWJQTlwDOq2UlIDoO0BJa4=; b=QosuXMMZaYAzK6kxyD1jA75Pw4WL7QHR7skrCtEUwMEKHslIkoxCSXv4kRv6oeKL0d DDzC5LXe6wX4xDU2gUBYowzreVKbm4cwhCP00Cg2F6xH9wlCXybJnmCvmH09HrFpv/LA fWsZrOeq+MmHxFZPd6yFiP84EhxLXT41YY8IdqmL6Hyi/nRoCHHcWKtINVCBIfQqASHc A/RZLfZ0FXFqyTGKEEjm8212njfCdGsarSWuFShVpUG48nVYc4LlPC+d+Eh6CdLHXLWZ cgD7ah3ciyxLFJEIrqZ99nfSVZ46LJDNrM01155z3pFONXjkkUhyd0qzQAZIwdBJHq5c D+5A== X-Gm-Message-State: AOAM532qoKeoWN/cC5pUdJEIbAAaqdr/7PuLOb4XDjtZ/73dtxpmi8hD j7uf5nxtmAl8iCxYTr4PFX8= X-Google-Smtp-Source: ABdhPJzNu6f/h4OyCOlpfOFPG9b/8q8uTzxf3NTXJ+6Wk28OKfVdfiiIuwyJgT/05RZNZlxN9RiWiA== X-Received: by 2002:aa7:94a4:0:b029:151:d786:d5c2 with SMTP id a4-20020aa794a40000b0290151d786d5c2mr3096886pfl.50.1603957787899; Thu, 29 Oct 2020 00:49:47 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id n64sm1882118pfn.134.2020.10.29.00.49.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:49:47 -0700 (PDT) From: Coiby Xu To: Lars-Peter Clausen Cc: Jonathan Cameron , Peter Meerwald-Stadler , linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 03/15] iio: accel: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:48:58 +0800 Message-Id: <20201029074910.227859-3-coiby.xu@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201029074910.227859-1-coiby.xu@gmail.com> References: <20201029074910.227859-1-coiby.xu@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org SET_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- drivers/iio/accel/mma9553.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iio/accel/mma9553.c b/drivers/iio/accel/mma9553.c index c15908faa381..1d2e57158b31 100644 --- a/drivers/iio/accel/mma9553.c +++ b/drivers/iio/accel/mma9553.c @@ -1197,7 +1197,6 @@ static int mma9553_runtime_resume(struct device *dev) } #endif -#ifdef CONFIG_PM_SLEEP static int mma9553_suspend(struct device *dev) { struct iio_dev *indio_dev = i2c_get_clientdata(to_i2c_client(dev)); @@ -1223,7 +1222,6 @@ static int mma9553_resume(struct device *dev) return ret; } -#endif static const struct dev_pm_ops mma9553_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(mma9553_suspend, mma9553_resume) From patchwork Thu Oct 29 07:48:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Coiby Xu X-Patchwork-Id: 11865415 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C42C614B4 for ; Thu, 29 Oct 2020 07:49:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9A074214DB for ; Thu, 29 Oct 2020 07:49:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ix2lmQl+" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731751AbgJ2Ht4 (ORCPT ); Thu, 29 Oct 2020 03:49:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732050AbgJ2Hty (ORCPT ); Thu, 29 Oct 2020 03:49:54 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3428C0613CF; Thu, 29 Oct 2020 00:49:53 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id o7so1667059pgv.6; Thu, 29 Oct 2020 00:49:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0pJyw5e2uVCaJHwgv8O5wRSAVHlgce7tiNX5svglHsI=; b=Ix2lmQl+DWYLKLA5is7LbnytJ0ADzwrgbCCN0XUD6Ufr2BzUCcTw5cpeujwfjaAs6J EJw+5iOFVfEBp1FclITejeT0AHVB2r8TcoQrzdYn956WgfLXmN7vPc9M77rCwHcfO5pH Fq3ePKfGkQTwcCnEwdyCdgrKcCLr/2xZ6WWiC8wujgufIHoeUWN4WyyW2+4SpSNsqj02 jRSym5jsnpgpw6JaQWwwhPhtyh9q64Fk8lPKC1x/pWR8tQukiHqRzCWdobhplCZaXRRz 1pw8QMGykw3fi6Atelwxb8PJwj8bhrjOdwimXM93Xtg61jcVeSKzm5V1RJ6FFX1W33gx 3j3w== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=0pJyw5e2uVCaJHwgv8O5wRSAVHlgce7tiNX5svglHsI=; b=GHmnBA5tp3bUpQeE5X2funpoVR178YjaRVAWfgf5fE1ranb/cuTlwsV4OOTIYey7XL vvs6rJfS9xVbXcejxm6x90IzIt2Nr7SN2ufLmg1P9aHnr/2vBnos+r2m4vTQkP6ZI0Uq kU2IO16AlllGvFYSk5oLOn811UcrmbgPWog/yklBpVdboQNSMQ1Vw0pNsfh7HwfBlqIl wlIXfPn9Dy7HCNyNbX9UsipsMmjeR72ssvsQ9Jjd8V7cx+DpBFZEtj+Ka0L6OZXg/yTQ jw2sCMB0HkwNTWRNgGsae2R2D+xJiICizoXBwHkCD5rorUw55+sejbX7kJMZLHv5Ev84 ZOPQ== X-Gm-Message-State: AOAM533ANgUZyNi3mIp8m9D7VN9WYkR8tg3GNkeOTJnJAF0l0NNd+Fxi GnhOYTCaLqmua3L02EBBLvM= X-Google-Smtp-Source: ABdhPJyKozwZeTEYEB7sGwKwE9Yj80kKs0aun5z7ovTUm/3VkWT8z8w3TGILmWrop7s/FZR0944VvQ== X-Received: by 2002:a17:90a:dc85:: with SMTP id j5mr3007974pjv.38.1603957793539; Thu, 29 Oct 2020 00:49:53 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id m23sm1619046pgk.84.2020.10.29.00.49.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:49:53 -0700 (PDT) From: Coiby Xu To: Lars-Peter Clausen Cc: Jonathan Cameron , Peter Meerwald-Stadler , linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 04/15] iio: accel: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:48:59 +0800 Message-Id: <20201029074910.227859-4-coiby.xu@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201029074910.227859-1-coiby.xu@gmail.com> References: <20201029074910.227859-1-coiby.xu@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org SIMPLE_DEV_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- drivers/iio/accel/mc3230.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iio/accel/mc3230.c b/drivers/iio/accel/mc3230.c index 46e4283fc037..b966922b9899 100644 --- a/drivers/iio/accel/mc3230.c +++ b/drivers/iio/accel/mc3230.c @@ -160,7 +160,6 @@ static int mc3230_remove(struct i2c_client *client) return mc3230_set_opcon(iio_priv(indio_dev), MC3230_MODE_OPCON_STANDBY); } -#ifdef CONFIG_PM_SLEEP static int mc3230_suspend(struct device *dev) { struct mc3230_data *data; @@ -178,7 +177,6 @@ static int mc3230_resume(struct device *dev) return mc3230_set_opcon(data, MC3230_MODE_OPCON_WAKE); } -#endif static SIMPLE_DEV_PM_OPS(mc3230_pm_ops, mc3230_suspend, mc3230_resume); From patchwork Thu Oct 29 07:49:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Coiby Xu X-Patchwork-Id: 11865421 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A811C14B4 for ; Thu, 29 Oct 2020 07:50:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7CB7F2151B for ; Thu, 29 Oct 2020 07:50:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="a9k9AMCZ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731127AbgJ2Hu2 (ORCPT ); Thu, 29 Oct 2020 03:50:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731174AbgJ2Hu1 (ORCPT ); Thu, 29 Oct 2020 03:50:27 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61A7BC0613CF; Thu, 29 Oct 2020 00:50:26 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id x23so911926plr.6; Thu, 29 Oct 2020 00:50:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zJxq5YLLINBrPbpy8t/40KrlWt7azYyE3vRsbR5ndcY=; b=a9k9AMCZPcGplPT+JSsKE0EjCAqn1XU0wCFloQ8CurFVYrbQavZaccf89Elj+ysGl2 24dJ92UYW8lScNs7J7VqGYw5ZoXIHyQ78kJ27dyQpmMWIiHazw0Mjbcxo/oRXGJ3DKvB EpdZrxHjQwRTnca72V7UbMtOnHOKdbA1g5HKyJ3ytKGt+Q51uv5hML09i9NgIoQ6xzUG i2Btz1mkojCaIIqI/hx+A1Ms6bJ7tsl/EcKie4lzBBty2w/8lALJ6clXGTn1RwpQ69Dd GgZuP+wHgetS5KWe4xhd/LN0Ep4AhYlSO+sqDBJmC/eHjbVkTgSHBJq0BgeoqyUNcyaA Ou7g== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=zJxq5YLLINBrPbpy8t/40KrlWt7azYyE3vRsbR5ndcY=; b=dP51h0u/GPjAhTXFkpEpfn7cCK/5apSCoFOmZOdcn72EzAX8SpjmdXinSNVuhT7EJV aUC+D+gC12Akii2r2eX5F5V6pGHmB9Wz9hBoxzBmH3iDjAcu92uyZyZ0WwaZr4uE5n5x P2i5EGikmU6R7u8hjGngqLUswtXwOiY+WjoCQSW/7loTDxYBrJIxMnUiLxx+sHTArfA8 gPuNG8w6W78ZmqR/lG2JbOW5DjUTjj2y8JbIiUP9gsblRYNJbXD+bqwnSeMJuns76ach a/TvzSwI5S5gX6psk2weefNuqZDvgRRPXc1F2prKT5P2Gd7PEHUlclOvjvpX3scq7QKZ H98A== X-Gm-Message-State: AOAM533ma9IywGxf1QnUPf6WUxo+PRtEqPJKpiYgWXeDKLKhiDD+4d0T fiQWHYcnwZPMHdo249XP6JQ= X-Google-Smtp-Source: ABdhPJz1fWfIIOU7sm75x3JVIEtzYhq6AxzBzUGK4Hg3dlsk2mTx/X7/K9r7pTog6bQPVlMhiC0qqA== X-Received: by 2002:a17:902:9890:b029:d2:2f2a:584e with SMTP id s16-20020a1709029890b02900d22f2a584emr2840332plp.29.1603957826017; Thu, 29 Oct 2020 00:50:26 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id d190sm1865105pfc.185.2020.10.29.00.50.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:50:25 -0700 (PDT) From: Coiby Xu To: Lars-Peter Clausen Cc: Jonathan Cameron , Peter Meerwald-Stadler , linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 05/15] iio: accel: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:49:00 +0800 Message-Id: <20201029074910.227859-5-coiby.xu@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201029074910.227859-1-coiby.xu@gmail.com> References: <20201029074910.227859-1-coiby.xu@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org SET_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- drivers/iio/accel/mma9551.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iio/accel/mma9551.c b/drivers/iio/accel/mma9551.c index 08a2303cc9df..c3b7a1633907 100644 --- a/drivers/iio/accel/mma9551.c +++ b/drivers/iio/accel/mma9551.c @@ -558,7 +558,6 @@ static int mma9551_runtime_resume(struct device *dev) } #endif -#ifdef CONFIG_PM_SLEEP static int mma9551_suspend(struct device *dev) { struct iio_dev *indio_dev = i2c_get_clientdata(to_i2c_client(dev)); @@ -584,7 +583,6 @@ static int mma9551_resume(struct device *dev) return ret; } -#endif static const struct dev_pm_ops mma9551_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(mma9551_suspend, mma9551_resume) From patchwork Thu Oct 29 07:49:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Coiby Xu X-Patchwork-Id: 11865423 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1859314B7 for ; Thu, 29 Oct 2020 07:50:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E9EE320EDD for ; Thu, 29 Oct 2020 07:50:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="EqNKppbc" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729853AbgJ2Huj (ORCPT ); Thu, 29 Oct 2020 03:50:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730126AbgJ2Hui (ORCPT ); Thu, 29 Oct 2020 03:50:38 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BB3FC0613CF; Thu, 29 Oct 2020 00:50:37 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id a200so1645073pfa.10; Thu, 29 Oct 2020 00:50:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QNkrPLHHXzo4JBLzUlG/Xlp9ujrQPLyDKmRRIViMZxw=; b=EqNKppbchCHnNqjZHCpqKABSI72qxA4koIl2Oq/QLMFnMkFcJtFUiyLkpPABrqYVQO WPH+L6QNE/KVyUyAhbHKmNsHl+AsLhdynKUY7K0IhFBavUlCBM1Yz2S1/Sqj6OS2PhVh tHZFRVNI/x5kG9C46aOidkBTwwAzccEovXllVDlHZF8Myk1hqHICapKPDyKhw4Izous/ a6KLzeIupQaUwYN/AAL3aajGV+/jYpRYgo6a/Ry5IRaou00bR4VaV6XHKLgjhTxfQydV plCvbA+zd0C/sckoWE2YNmLgr3lUMB2jto86K9txmvtRELHJQ5DsLbbAqMIpS1iqf+Oz tLVQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=QNkrPLHHXzo4JBLzUlG/Xlp9ujrQPLyDKmRRIViMZxw=; b=XFijORMUkR+peTYLmqK+1gtzgo9IXpuHCPX3S1XnpMtG7w5slWeWyLjTQ+rbK6NeAw GJFVaiy8LX5/LJPRaI1AFZEYTMi1l0syOmQCvXPA9NfxrbRoQ9fAQWmjz/blRhs5ZDPp IX7p/JffXX8mnVHndUtY9iPEqzYlpZo40ELhRA26/Xgym9+TFiyAVq6Y9Tt9J99/wuBK 0Dp62lMWjiuvGLh6j42t+c86izF91TpcJ/CVgsRB4IXzQ4d0FFM/yqnpYCLvv1FRuiYs 5qEp6jW9+kpTAl3M9J/0S2n9GUek9KV5NVP+Wh1+CpLW0UXFATWtOemeDL0jy9SRYPRx +cCA== X-Gm-Message-State: AOAM532eQQ1Ec+ye74QE2MdmOY8W1y3SVjC+PR0p7ZFDA7ttEEEyV/eh R5PbTHuKZWy7l4DSPqcHTZTDrzKwVcfjtfqi X-Google-Smtp-Source: ABdhPJylhPTzKe1LDDOJVqfk6e/THY7opAzLju4MJ/0WvsA0RzzQfJ0qRVTMuV/IWlFEE2HaQPAfwA== X-Received: by 2002:aa7:808a:0:b029:160:167d:d332 with SMTP id v10-20020aa7808a0000b0290160167dd332mr3081335pff.1.1603957837209; Thu, 29 Oct 2020 00:50:37 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id md11sm1935891pjb.18.2020.10.29.00.50.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:50:36 -0700 (PDT) From: Coiby Xu To: Lars-Peter Clausen Cc: Jonathan Cameron , Peter Meerwald-Stadler , linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 06/15] iio: accel: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:49:01 +0800 Message-Id: <20201029074910.227859-6-coiby.xu@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201029074910.227859-1-coiby.xu@gmail.com> References: <20201029074910.227859-1-coiby.xu@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org SIMPLE_DEV_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- drivers/iio/accel/dmard10.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iio/accel/dmard10.c b/drivers/iio/accel/dmard10.c index 90206f015857..64a15dea2a82 100644 --- a/drivers/iio/accel/dmard10.c +++ b/drivers/iio/accel/dmard10.c @@ -224,7 +224,6 @@ static int dmard10_remove(struct i2c_client *client) return dmard10_shutdown(client); } -#ifdef CONFIG_PM_SLEEP static int dmard10_suspend(struct device *dev) { return dmard10_shutdown(to_i2c_client(dev)); @@ -234,7 +233,6 @@ static int dmard10_resume(struct device *dev) { return dmard10_reset(to_i2c_client(dev)); } -#endif static SIMPLE_DEV_PM_OPS(dmard10_pm_ops, dmard10_suspend, dmard10_resume); From patchwork Thu Oct 29 07:49:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Coiby Xu X-Patchwork-Id: 11865429 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E141814C0 for ; Thu, 29 Oct 2020 07:51:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BC4FC214DB for ; Thu, 29 Oct 2020 07:51:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="K6/mzp9+" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730838AbgJ2Hus (ORCPT ); Thu, 29 Oct 2020 03:50:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730816AbgJ2Hur (ORCPT ); Thu, 29 Oct 2020 03:50:47 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F11FCC0613CF; Thu, 29 Oct 2020 00:50:46 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id x13so1646566pfa.9; Thu, 29 Oct 2020 00:50:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NOzNlbNOltOtdR1QdriCPf2XH+HcyRFu5e424v+5S24=; b=K6/mzp9+iSfR1F0KLrjqgFqtGBgGu5Qsyh9lrv3lpj51Z3FiXtcnICok7kdsijfIJ3 0oLxGapPR3OtbP/2I4cWFTW2mESkcLLGuP24RealKcYZJeZIQJYzniqNa69DaEsg5fh/ ll71+R5b2Ag8xdbm/UYVEY4Et5kfQ5lpqhb93x4kjPRXWMBJ20bdYEyPklacx3G5kGod I/jpxhGvKPKF4uIdkaTPVZa7QwAUbVSxGMkThEYK+WDi8MPeDO3zVmVcbHppfXO6Whn2 YQPIZKzDe60sCedqDCnbzWt7QBHkiHmQdC+TTTEPpKs120vc1/j2qC4Cgbilim1V2KZm QPJg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=NOzNlbNOltOtdR1QdriCPf2XH+HcyRFu5e424v+5S24=; b=poJp9o35/lcP8Z+VBTrGx8bESgMf6JMa2rMOtOrE6hYlzCIvxbIna1foiNqHrg4gb7 vTHrllffRi6ZMtHn6FuevkqfSeYuwAP/62wvYs7cPEU0VWfchDIgBP20IeNnq+5KiVw0 2yuigMWINrr57f+SqspPnuCF875wjT/coOzIT+aWNP2il1qHCodQpPe75fZNXJehpYQo BANMUTipHbZwTCmvmVcGWIynvmEyTgEv1TcV2HivOQ2lN0q7TYDfzO7wJHS/vPW0SW/h 7aizan6ZxOivq3RWx/cdazSIpqcERH5KlVV965DHQ2gQN/lGyqfVjGKJV8whGMdzA5A9 j1BA== X-Gm-Message-State: AOAM53196DCZs2nnKbCfWxxc41mx7fT1tn98hwU5jzk48u5A7CR+uQAk JM6RYBzFH7GhMpU7DiXObHI= X-Google-Smtp-Source: ABdhPJy+HK/XXBsjKtniKutr4zdsu++EX8yBXcfuVK/U0htYUR+tkyhpMk6KZpbyMeKtccqlWH/5xw== X-Received: by 2002:a17:90a:4e83:: with SMTP id o3mr3025792pjh.164.1603957846646; Thu, 29 Oct 2020 00:50:46 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id s6sm1631225pgo.8.2020.10.29.00.50.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:50:46 -0700 (PDT) From: Coiby Xu To: Lars-Peter Clausen Cc: Jonathan Cameron , Peter Meerwald-Stadler , linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 07/15] iio: ssp: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:49:02 +0800 Message-Id: <20201029074910.227859-7-coiby.xu@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201029074910.227859-1-coiby.xu@gmail.com> References: <20201029074910.227859-1-coiby.xu@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org SET_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- drivers/iio/common/ssp_sensors/ssp_dev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iio/common/ssp_sensors/ssp_dev.c b/drivers/iio/common/ssp_sensors/ssp_dev.c index 1aee87100038..e284ff702280 100644 --- a/drivers/iio/common/ssp_sensors/ssp_dev.c +++ b/drivers/iio/common/ssp_sensors/ssp_dev.c @@ -612,7 +612,6 @@ static int ssp_remove(struct spi_device *spi) return 0; } -#ifdef CONFIG_PM_SLEEP static int ssp_suspend(struct device *dev) { int ret; @@ -661,7 +660,6 @@ static int ssp_resume(struct device *dev) return 0; } -#endif /* CONFIG_PM_SLEEP */ static const struct dev_pm_ops ssp_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(ssp_suspend, ssp_resume) From patchwork Thu Oct 29 07:49:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Coiby Xu X-Patchwork-Id: 11865425 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 52F1114B4 for ; Thu, 29 Oct 2020 07:51:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2CA492076B for ; Thu, 29 Oct 2020 07:51:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="AHd+uqwc" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730821AbgJ2Hu6 (ORCPT ); Thu, 29 Oct 2020 03:50:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730926AbgJ2Huz (ORCPT ); Thu, 29 Oct 2020 03:50:55 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC71EC0613CF; Thu, 29 Oct 2020 00:50:54 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id w65so1672272pfd.3; Thu, 29 Oct 2020 00:50:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=THrwcXVbjUvT+jPdEmUpbr/nwiN+BAsULiXndCP+bxY=; b=AHd+uqwc6YkRU/7Os7FqyGGstxrZ1bhXPSAduYSr+SDK99AaLWJkwzXvVtDfBoonMx tRvv/Iq0uGItt4pHNFwPEcLMLPe9OWCI8/TAwYI7KWsM8T/1qh7id97Wia8AXoCTVmJ/ Pg9MtaKeO+Uu54ou+su3qEA+w85R1pzVXyNDlpco4yXtz2a/g3VzI8dSqaWcRIrAqJ2e 4R2uoxxEP+vdC4PfeMYCNnKdjSAj34ey5msjrlsk4O6255MqJhTGeGd4susWYdVZ/wa5 l3oEbi568XnSRSIMP4YkwYoEKQTXwo+v4rsnzxtss+jikdFQUk11tV7CZlLZfgrZ2Pnj D8gA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=THrwcXVbjUvT+jPdEmUpbr/nwiN+BAsULiXndCP+bxY=; b=gqYaE7OgDZSgZo9ScBi1ZXYNfKg3Y9rHftVxB9EI78J0sJUQiWIltOhCaWIgD7sxuY 5mh3AYW9cRt661fldxuYXcZQS8Xqo8QLYrteB1v/aR6AkArfTDAmXPrdwadrPMGKKqD2 mwGHRStOaw2MKs3//Erpn6w6HHJ1MwgXJ0rTWntG9TPq1HjMjkxaU4nvI8X8PT1woxct 5AZVPsXgGfX4DD29dlQYPP4eNXDkuwoJ0Zjv4dNAUpjprgYAKASbZgU1wby0Ty+Cxo86 OY90NkZz4yykbm/6q+GT/+6VsON8W8gM38fCsQWgKWnk2nSrU8dxxQQN6cmv3vvMW0pd cvUg== X-Gm-Message-State: AOAM531ndUav3ysVYi3MHOZnxmz8dPzLIASQVCahm3/zhoL7UX1DPqNq 04Cu/6AEERgZpRHGocvuBElQZjpIKdP19Blz X-Google-Smtp-Source: ABdhPJwsycZmyVlHUcOYG+/ytelpDr0JA32dwcWKC5Fdq8S3BI28UvFjhqgsbwXMdQfm3+EgqrSDTA== X-Received: by 2002:a63:cb4f:: with SMTP id m15mr2958825pgi.281.1603957854518; Thu, 29 Oct 2020 00:50:54 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id d10sm1641975pgk.74.2020.10.29.00.50.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:50:54 -0700 (PDT) From: Coiby Xu To: Lars-Peter Clausen Cc: Jonathan Cameron , Peter Meerwald-Stadler , linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 08/15] iio: magnetometer: mmc35240: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:49:03 +0800 Message-Id: <20201029074910.227859-8-coiby.xu@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201029074910.227859-1-coiby.xu@gmail.com> References: <20201029074910.227859-1-coiby.xu@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org SET_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- drivers/iio/magnetometer/mmc35240.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iio/magnetometer/mmc35240.c b/drivers/iio/magnetometer/mmc35240.c index 65f3d1ed0d59..37d330220433 100644 --- a/drivers/iio/magnetometer/mmc35240.c +++ b/drivers/iio/magnetometer/mmc35240.c @@ -521,7 +521,6 @@ static int mmc35240_probe(struct i2c_client *client, return devm_iio_device_register(&client->dev, indio_dev); } -#ifdef CONFIG_PM_SLEEP static int mmc35240_suspend(struct device *dev) { struct iio_dev *indio_dev = i2c_get_clientdata(to_i2c_client(dev)); @@ -548,7 +547,6 @@ static int mmc35240_resume(struct device *dev) return 0; } -#endif static const struct dev_pm_ops mmc35240_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(mmc35240_suspend, mmc35240_resume) From patchwork Thu Oct 29 07:49:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Coiby Xu X-Patchwork-Id: 11865571 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 077A76A2 for ; Thu, 29 Oct 2020 08:05:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D142D20825 for ; Thu, 29 Oct 2020 08:05:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mpFTCQ8L" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726286AbgJ2IDV (ORCPT ); Thu, 29 Oct 2020 04:03:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725834AbgJ2IBA (ORCPT ); Thu, 29 Oct 2020 04:01:00 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBBE9C0613CF; Thu, 29 Oct 2020 00:51:04 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id z24so1674123pgk.3; Thu, 29 Oct 2020 00:51:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XkDkKRB7/2lcKBzKiX53t3HQfs1gEjtZFJmelsymB+Q=; b=mpFTCQ8LPy72Xr802aGpI0eZ1f4K1YI2SgfPo8aEX/BbTYD+f6SZcEIZqkDRepyWtK dn68KDDehULYSdvQ3IvItCo9eVahGo289q2Q3b9HwMwjxjtNcbTJytK/JJRj9vmrr8k6 MkGf3iICdyq89omI0M7yLNpMikdW7aFOu3Hy0rDQVFI3kjmEnjAb/ucznbDci6gWkcjn 8WnY/UkQn2/7hlFutW8Obf1O2nlkFCWrRSFlRtuwDfU81wKHghVCjmNffJye2DQRdPG7 z037c4CQnb7zHHAmNoDmoQjzD1RW95BAtUhHo5zeqznAQt6CKSZL/ma6XoL7OuN/ddZr NPXA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=XkDkKRB7/2lcKBzKiX53t3HQfs1gEjtZFJmelsymB+Q=; b=HjjynqSqqrg+Ue38w4LdnrkiH8Km3mPV7Q9qJ4Chbaqi5DkjBbygH9knNmc+ofhJwD zOQ8clcOKs9b62ZHFSx19YjUrH+10TMKLlgosduySHi7lBw1yebU6ouc4gnj3Mpai++u gog3by6YwTNdoEzULbDzlEKujh0b2OnyTUCRW3hpBeUTap0Ocuga3hPdGS4jsh+GZ32E IqVLc/O8Y2Pc63BXdgTj+h9tZrnLsk6Ko7AGt74Y4TeQJSa0rqu7Iihzh6c8KKuH4rCM JmsYA5WbmhWSllwat5icLcUWnu0KpARHlNOISnabASrxzaOcQU3dXo3ATJfPpxc3Od+z cb5Q== X-Gm-Message-State: AOAM532OPhpV8pC1iPUamdNG9l9ziA9PiJeXgFKUYUflrp8g7yRoDtmg 2CMWN9ub08f89Wzvh1D++mA= X-Google-Smtp-Source: ABdhPJy/PkqMcOc3J3zmNBHNCBpJIycRVZTFxoe8llsW01AjZ7H2QUwe++y/A8kRxb4bNFnzRFzreA== X-Received: by 2002:a62:c181:0:b029:152:6ba8:a011 with SMTP id i123-20020a62c1810000b02901526ba8a011mr3171136pfg.2.1603957864450; Thu, 29 Oct 2020 00:51:04 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id r19sm1738735pjo.23.2020.10.29.00.51.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:51:04 -0700 (PDT) From: Coiby Xu To: Lars-Peter Clausen Cc: Jonathan Cameron , Peter Meerwald-Stadler , linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 09/15] iio: adc: palmas_gpadc: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:49:04 +0800 Message-Id: <20201029074910.227859-9-coiby.xu@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201029074910.227859-1-coiby.xu@gmail.com> References: <20201029074910.227859-1-coiby.xu@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org SET_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- drivers/iio/adc/palmas_gpadc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iio/adc/palmas_gpadc.c b/drivers/iio/adc/palmas_gpadc.c index 889b88768b63..76bafa5a4bf3 100644 --- a/drivers/iio/adc/palmas_gpadc.c +++ b/drivers/iio/adc/palmas_gpadc.c @@ -643,7 +643,6 @@ static int palmas_gpadc_remove(struct platform_device *pdev) return 0; } -#ifdef CONFIG_PM_SLEEP static int palmas_adc_wakeup_configure(struct palmas_gpadc *adc) { int adc_period, conv; @@ -812,7 +811,6 @@ static int palmas_gpadc_resume(struct device *dev) return 0; }; -#endif static const struct dev_pm_ops palmas_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(palmas_gpadc_suspend, From patchwork Thu Oct 29 07:49:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Coiby Xu X-Patchwork-Id: 11865569 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EDEB36A2 for ; Thu, 29 Oct 2020 08:05:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C390120791 for ; Thu, 29 Oct 2020 08:05:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bnVSoLrb" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725536AbgJ2IDX (ORCPT ); Thu, 29 Oct 2020 04:03:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725829AbgJ2IBA (ORCPT ); Thu, 29 Oct 2020 04:01:00 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD6C4C0613D2; Thu, 29 Oct 2020 00:51:12 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id x13so1647346pfa.9; Thu, 29 Oct 2020 00:51:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NGq3AUw6ysMha/FfRYSK0ItKsIwpDFgIL0/PfPvnWrU=; b=bnVSoLrbLDKak3wbA067m2XQ+pNeAm2plBFMKyCKdA6CEgzhXD/wXBT5lXDx0F+8u+ xYegieS/ReMqYyfPoM2IYge7/7qvFLjd5p4NxLM1GxnEauDnW2+Qrwu+tn3YNmWONFRY TgS5K0YsDv7YYNr/facwK8WQaHhPXtmjgYdq+u34vTR9EUf3NDDQ5eKeO1zV9VpaNhEs 9KtXX4PvOatAAYC5gUr9/ubfqsegV5th2OOTUNWlDOawIAPSzAw4xbzfxBij0rwLPFUM 2xchontH33wuSdahu4mOyCKEF9c1qMiITDcq6/FB4VQz3YMJZkirx1xBZxhj28bGLJfS I/rg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=NGq3AUw6ysMha/FfRYSK0ItKsIwpDFgIL0/PfPvnWrU=; b=I6XfreYes1usXx0YnKXA+rxW/+rCfVj8BRkIUdVWPmhpe2tjyL6RI7eoCrfHgg1WMO UFNRquzhd3kHcIfmGAaKLiDJRAh1lnmqdL3B7f5Q2/BTtiR22646x41TF4OZXfONiQ1v TgRwlCOfLuCynU8aG6yZ73WAjSd0QvRlAF0AS9IF52vuEnDPY2mX0NTThDR0rMx5IPnI vnhU5ALZkvRN56q8oH/DrcHlrgHRURF7bGyWrzJVeMnesaKus4mA77ohu3nU20E+pS7g jPy1iytojKoN+nU0FLirzpB+bI9trZPQ1/aDrsxFuxij1b8IbGErvModjpwwOT7SlVCb 4/DA== X-Gm-Message-State: AOAM532fmPqraGAbOwQwFLyU8tQ0MXnLM11PjEhjhBBBnD25PdqFIkQN mJsR9Xzsw9qIbOLoX+AVYfQ= X-Google-Smtp-Source: ABdhPJyuOhugn9EpUqKcAqFDBehBdUAOq+V9klQLT4mpZNvgrUWTycwVHeRUf0JZ947fMhy6rQ4NGA== X-Received: by 2002:a17:90a:b303:: with SMTP id d3mr3056205pjr.207.1603957872363; Thu, 29 Oct 2020 00:51:12 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id y1sm1932947pjl.12.2020.10.29.00.51.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:51:12 -0700 (PDT) From: Coiby Xu To: Lars-Peter Clausen Cc: Jonathan Cameron , Peter Meerwald-Stadler , Maxime Coquelin , Alexandre Torgue , linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS), linux-stm32@st-md-mailman.stormreply.com (moderated list:ARM/STM32 ARCHITECTURE), linux-arm-kernel@lists.infradead.org (moderated list:ARM/STM32 ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 10/15] iio: adc: stm32: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:49:05 +0800 Message-Id: <20201029074910.227859-10-coiby.xu@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201029074910.227859-1-coiby.xu@gmail.com> References: <20201029074910.227859-1-coiby.xu@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org SET_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- drivers/iio/adc/stm32-adc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iio/adc/stm32-adc.c b/drivers/iio/adc/stm32-adc.c index b3f31f147347..42f9013730f8 100644 --- a/drivers/iio/adc/stm32-adc.c +++ b/drivers/iio/adc/stm32-adc.c @@ -1988,7 +1988,6 @@ static int stm32_adc_remove(struct platform_device *pdev) return 0; } -#if defined(CONFIG_PM_SLEEP) static int stm32_adc_suspend(struct device *dev) { struct iio_dev *indio_dev = dev_get_drvdata(dev); @@ -2018,7 +2017,6 @@ static int stm32_adc_resume(struct device *dev) return stm32_adc_buffer_postenable(indio_dev); } -#endif #if defined(CONFIG_PM) static int stm32_adc_runtime_suspend(struct device *dev) From patchwork Thu Oct 29 07:49:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Coiby Xu X-Patchwork-Id: 11865573 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BA54D6A2 for ; Thu, 29 Oct 2020 08:05:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9611C20838 for ; Thu, 29 Oct 2020 08:05:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DvqhbcjN" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725372AbgJ2IDT (ORCPT ); Thu, 29 Oct 2020 04:03:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725827AbgJ2IBA (ORCPT ); Thu, 29 Oct 2020 04:01:00 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C053FC0613D3; Thu, 29 Oct 2020 00:51:26 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id b19so923205pld.0; Thu, 29 Oct 2020 00:51:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wZ5UHJU2k8+XmvcH/IvrsRU5Xn67KNu8TMpKLwowKVg=; b=DvqhbcjNnrs6ueCs8a1BmDbtqqE0qoULXOUahG0UTo2wUKeAt2R3YTs1Z361bm0W5q SBC4oh/uvWVwlfG84lemEgjF2uQ/DeT2/dCQt94dg34OaBHae5araLdtkdjLlPQ5x9p5 DhTn1jn1PHyhXRcz7EOoSd/F0dDpnNri2fE0uLzQopWM14qrUUHWoJxITOuc2CyauKBi xH2AAbVdD+RVFdZ8XkIw4S8T9/IdnQ2M8/5XgWvz+o2Se0XSM7XbnZ1Fyy/E9u3iHTDm pMwhPrFNGO5mEY3wAi7UmL6GuL4fvaVPl+8CgykdG+EiRNwoPcM4SoKUzWccNIwWDG4m /bDQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=wZ5UHJU2k8+XmvcH/IvrsRU5Xn67KNu8TMpKLwowKVg=; b=PDPqVxoSgFiZP0/2vhFmp358QgCIohQ/3Lz+yUao7IgXViEU0Rmrff0fe0PNTU39y9 NTDhUwNCtRu2kjJVrb/ib0J1SjQxVSfaCbWBlHmBmbLuU+vU7gn2AKmI7vOaxkL5loeB vG13GvJnfY970B/QATT7u0ArmSzDYfW8DJRvZy9W95SnqRDuwnasBy2ACYXhYClY7zsT 5/QggBO/ovJ5vc8HxqK/bt1md1m8QYFfG9nYP/cJiMLvnBp1G2woSMCSGoCqB+VwumXy NbqWYxDHrC1oKfI7gn3u++JeQS0RPb2FdfWgjqmY3FMwV0nblRB/fvfa7r5+pyzOzvbS 8UXQ== X-Gm-Message-State: AOAM533koEIsFnma07UaT1O41ZrluV6k6v8B1IwP+sSMg/NeuS0EZ+5N zvBzVAjYCtKmCEqTjOBvERY= X-Google-Smtp-Source: ABdhPJxUd8hfu5jLHk8b3gLp8SIAvXM7u0B/XPH55zRwpKYA/OuaoOOEfJhbC5tysbGRkvrUXYfrzQ== X-Received: by 2002:a17:902:9887:b029:d6:681b:baaf with SMTP id s7-20020a1709029887b02900d6681bbaafmr3027313plp.20.1603957886390; Thu, 29 Oct 2020 00:51:26 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id s4sm1755525pjp.17.2020.10.29.00.51.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:51:26 -0700 (PDT) From: Coiby Xu To: Lars-Peter Clausen Cc: Jonathan Cameron , Peter Meerwald-Stadler , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Microchip (AT91) SoC support), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 11/15] iio: adc: at91_adc: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:49:06 +0800 Message-Id: <20201029074910.227859-11-coiby.xu@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201029074910.227859-1-coiby.xu@gmail.com> References: <20201029074910.227859-1-coiby.xu@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org SIMPLE_DEV_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- drivers/iio/adc/at91_adc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c index 9b2c548fae95..445072b239a6 100644 --- a/drivers/iio/adc/at91_adc.c +++ b/drivers/iio/adc/at91_adc.c @@ -1350,7 +1350,6 @@ static int at91_adc_remove(struct platform_device *pdev) return 0; } -#ifdef CONFIG_PM_SLEEP static int at91_adc_suspend(struct device *dev) { struct iio_dev *idev = dev_get_drvdata(dev); @@ -1372,7 +1371,6 @@ static int at91_adc_resume(struct device *dev) return 0; } -#endif static SIMPLE_DEV_PM_OPS(at91_adc_pm_ops, at91_adc_suspend, at91_adc_resume); From patchwork Thu Oct 29 07:49:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Coiby Xu X-Patchwork-Id: 11865575 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 07E6114B7 for ; Thu, 29 Oct 2020 08:05:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D3C3820838 for ; Thu, 29 Oct 2020 08:05:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YJPMOhTG" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727248AbgJ2IDT (ORCPT ); Thu, 29 Oct 2020 04:03:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725784AbgJ2IA6 (ORCPT ); Thu, 29 Oct 2020 04:00:58 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8188C0613D4; Thu, 29 Oct 2020 00:51:34 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id s22so1654460pga.9; Thu, 29 Oct 2020 00:51:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=37IRInXQBrHpwWyuXj6qxmh1TahkV1hoRBjQOKGXhq0=; b=YJPMOhTGBwSxNTy9wYJdd3nuCruJq8bno88m+BFzoLTenKC0k4ufnz9BPMa2wMpAKd xFdeVK7cyuNWMbQCk+ylDQr3tLhReVkp8WFPBdyGXunb/azzuheiK2YxQzhxK98EWGDh bCYU8PMRzK03VuOSZJGmmvb/7bq5wm5X1UUEVKF/JowMkbIZkijf9xmeFEZGu2U6msZH C3lzKtWdNykUtHVz0v21eTVcmMRI1K9e9KliAG7Q9QX1fTeysofwJybgncTmHLH6HHI2 oMPAM8S3Q4g/jJepDT0ibZAOICyuIDFEHhgriIsOrot8g5R2epM2G9uNd+zb3NVQyl7y q1Ew== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=37IRInXQBrHpwWyuXj6qxmh1TahkV1hoRBjQOKGXhq0=; b=GuLayqN8iRQUceqQiataaAjKbqWCzrvN9W/FHVroifMksZwIcUj5uH/XftydBWKJFq A0JqoqlXieaJ6Qm7FzICwHL/y6jcl7z+310YbX5vmFwQGax1WQti4NEGhfHHcs2W9+20 M1Qh8w35XcvxzD6K7qLLB5E/HQlPKpLiQi+obh/dR2hELxy3xHFJRmMYzrF8Bn+fPMUg hmkwCjrzrDV9l250e/FOdku5+Yd5Fxwa7FfySyFgESQc6f3wGcMxKFkNPXmmrofMe27c O+QP7qeeJE0pMxegqE+BLV0myAQOgnsj2IbOVqoo4hBNIgaAQI4GpDoYQpyCrVKNrupd eoxw== X-Gm-Message-State: AOAM532WEUzrb4dfs9AX1G/AF4zd71tUTZVHrX4WePNzeoAFeXkehkBP gpiLzsl2bxmq32FnZX0rgFk= X-Google-Smtp-Source: ABdhPJz+l0EJjs/nTIIfKLF3+mUQfVEdnj0u0jGOk7RF2NVfyeRZUWwbveWD7w7oXboCYE68pupaTA== X-Received: by 2002:a17:90a:1501:: with SMTP id l1mr3163731pja.19.1603957894549; Thu, 29 Oct 2020 00:51:34 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id x2sm1818933pfc.133.2020.10.29.00.51.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:51:34 -0700 (PDT) From: Coiby Xu To: Lars-Peter Clausen Cc: Jonathan Cameron , Peter Meerwald-Stadler , linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 12/15] iio: imu: kmx61: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:49:07 +0800 Message-Id: <20201029074910.227859-12-coiby.xu@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201029074910.227859-1-coiby.xu@gmail.com> References: <20201029074910.227859-1-coiby.xu@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org SET_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- drivers/iio/imu/kmx61.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iio/imu/kmx61.c b/drivers/iio/imu/kmx61.c index 61885e99d3fc..3b3d44ea8d24 100644 --- a/drivers/iio/imu/kmx61.c +++ b/drivers/iio/imu/kmx61.c @@ -1448,7 +1448,6 @@ static int kmx61_remove(struct i2c_client *client) return 0; } -#ifdef CONFIG_PM_SLEEP static int kmx61_suspend(struct device *dev) { int ret; @@ -1474,7 +1473,6 @@ static int kmx61_resume(struct device *dev) return kmx61_set_mode(data, stby, KMX61_ACC | KMX61_MAG, true); } -#endif #ifdef CONFIG_PM static int kmx61_runtime_suspend(struct device *dev) From patchwork Thu Oct 29 07:49:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Coiby Xu X-Patchwork-Id: 11865483 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 703D5157C for ; Thu, 29 Oct 2020 07:55:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4883E21D41 for ; Thu, 29 Oct 2020 07:55:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YZw7MU8I" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731449AbgJ2HzD (ORCPT ); Thu, 29 Oct 2020 03:55:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731089AbgJ2Hwj (ORCPT ); Thu, 29 Oct 2020 03:52:39 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B680EC0613D9; Thu, 29 Oct 2020 00:51:51 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id 1so916424ple.2; Thu, 29 Oct 2020 00:51:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DfAmgCJp6XBS3CiRlJG+P+rWY7X14IqPx3fC7yq/vuY=; b=YZw7MU8In/xzm8OvxyQ0PkTj0nuTzquACNYVfNxocqeEEvcQ0RzhIDCIuU0rgs32mU wMJEQL6gxivii6gjz1j7XcGMiTwulDldK/Z1l0+PyrtTTOs4/w6jdxfGbcZVeCkKw8Hs 1jzVvD3vjJQ0BX3Ql5tIBg197293Ioi2lz1EYqSKFb7tL+znuZwGC03oJcwG9a+BW1Yp tperapjpr3zb6cO4Zf6sygNo2uASyLLyk+giZlrdbybHrO0yNtL1lY9Af4BHy8fkwCp4 1of53E7ig3yLrecWum5vOmK3ZSaWiDWl6O2VI0z0fizIaI2lWur0kU+tKwTsDReJY31P kZiw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=DfAmgCJp6XBS3CiRlJG+P+rWY7X14IqPx3fC7yq/vuY=; b=qCyFP2iaH9FfGnUNQCCKhUDlXjuc6PIf5KylzGlgOgLI2LdmXKgmcjHHlt/FeUDsKk uOsQKOE9XMlPRqOWeeRY5hkdCMnYB2lil13xwxI/QGPyxyq6vXPQiZRXWWWDO3lPpGfM KYeCjSUpwuHfuZhwmrVcVyVT7HdxuceliXyvEe7WWgpFq/hswWJh6G6v7ia50xgadO8r M1uUSXK1pHYO/G4gVdEwMPuIy9XB3dYNLXpT26C0j9j9xe0PBji6Q07VP4E9AjwhJrSx GQMnc/nM7+W5w5MpLC/oT4dXA7Hc6PBx7faOAuQoV5IC56HwA0djBApftBzggaN5YWUr shQA== X-Gm-Message-State: AOAM532ohKJaw8daoVt2Aoowbo+ZZwmOQ/TIXTIVXztuEnW6HTgIBw6J HKjKOB2qqoFLzj4VVP7drv8+cqf4DW2LAOaV X-Google-Smtp-Source: ABdhPJwc3VaZKXxenrpB0I5h3HuPXvxhgJXxuQ2dX3aAGxS/psGd6Os+8CFGSaUfdjvNvQxkhNMiwg== X-Received: by 2002:a17:902:bb86:b029:d5:28ac:8800 with SMTP id m6-20020a170902bb86b02900d528ac8800mr2793611pls.27.1603957911357; Thu, 29 Oct 2020 00:51:51 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id bo16sm1920225pjb.41.2020.10.29.00.51.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:51:51 -0700 (PDT) From: Coiby Xu To: Lars-Peter Clausen Cc: Jonathan Cameron , Peter Meerwald-Stadler , linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 13/15] iio: light: us5182d: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:49:08 +0800 Message-Id: <20201029074910.227859-13-coiby.xu@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201029074910.227859-1-coiby.xu@gmail.com> References: <20201029074910.227859-1-coiby.xu@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org SET_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- drivers/iio/light/us5182d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/light/us5182d.c b/drivers/iio/light/us5182d.c index 393f27b75c75..15c6f8db3fdc 100644 --- a/drivers/iio/light/us5182d.c +++ b/drivers/iio/light/us5182d.c @@ -918,7 +918,7 @@ static int us5182d_remove(struct i2c_client *client) return us5182d_shutdown_en(data, US5182D_CFG0_SHUTDOWN_EN); } -#if defined(CONFIG_PM_SLEEP) || defined(CONFIG_PM) +#if defined(CONFIG_PM) static int us5182d_suspend(struct device *dev) { struct iio_dev *indio_dev = i2c_get_clientdata(to_i2c_client(dev)); From patchwork Thu Oct 29 07:49:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Coiby Xu X-Patchwork-Id: 11865471 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 64C6814B7 for ; Thu, 29 Oct 2020 07:55:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 419F12151B for ; Thu, 29 Oct 2020 07:55:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="X2eKfrxr" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731090AbgJ2Hwy (ORCPT ); Thu, 29 Oct 2020 03:52:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731164AbgJ2Hwj (ORCPT ); Thu, 29 Oct 2020 03:52:39 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D862C0613DC; Thu, 29 Oct 2020 00:52:01 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id y14so1639924pfp.13; Thu, 29 Oct 2020 00:52:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6QKT0uDPiR12AaND+XZJ9++tzKNk6nVLA6Y08gKrKNM=; b=X2eKfrxr1XpevgR1taGe1YeeLQW1y6aWkGVCUfn81sB5nS3ZSszSQ/Vlcrkyyimuit l88GKRHFsLq1hruSdmhoCU9MWBOtfD89wpUgfdTKfucCfS5H13XUCyV2b7YxG9NYKZrY PCfgxW49RzmhNA8yhZcIYbgDQuxasyX6pAUxibtKmk1SVJQN0Wd5yD4Y5hL+MKiyVErd ULyEaBCSAOgwNU2t8uMBgcXfO8faDtat1zVlH/bO//nxC3OhHyunejghPzyeB7Tp6hOz lywAZ4kHiCfe0Qb4EQCQgxgGTgu1vuVJZK8fKjG3bNmuHKlY9g7G7mcJ8azbIxDHLV/l K59Q== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=6QKT0uDPiR12AaND+XZJ9++tzKNk6nVLA6Y08gKrKNM=; b=aftjprGfhUIibbu581knBQY6F9Cc69hBErIrpFY5tuUfNfh+viwLIZ+5Ngg0BHI7ao +9BFoM7rEjSOifoFoqgxRbKmraWPxO3EMsy1Z0FfQz3VQwnk6VFS8rTkndNXqzVLOBkD 3gwd66sF6zTiDWBo9db+snNeBfDh4NETdV/EifmDnm5zK5PPxu9eBcMM/fpa+cql+HY8 /QxHE+b2WXGL5mXx1fbB6fSrg9jAMgraWLyz8nhCeFuaEWgQ6kqE6GKIPSTGmx/4pL/q 64FskAP/V8NJFd96D+EyfFPrZE6FtBVy7ybuQeEQtBUoC8trrpBICrPtlmaV99X41JAA 8TCw== X-Gm-Message-State: AOAM530SX3pUOPv71/r+30WgNX22jfdsdO6cGVRBB5wfQ8WnTJS2jH0l nVnYW3s9xH9XWrQGzzLJIno= X-Google-Smtp-Source: ABdhPJyR/vVNVZkgwQb9fbxcU230r0R0irNG6iyIzQ+N0rIkhxaZbxQjtX8zGTsnIhEKtqcKVP6jEA== X-Received: by 2002:a65:5ace:: with SMTP id d14mr2946530pgt.323.1603957920912; Thu, 29 Oct 2020 00:52:00 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id j20sm2042396pfd.40.2020.10.29.00.51.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:52:00 -0700 (PDT) From: Coiby Xu To: Lars-Peter Clausen Cc: Jonathan Cameron , Peter Meerwald-Stadler , linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 14/15] iio: light: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:49:09 +0800 Message-Id: <20201029074910.227859-14-coiby.xu@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201029074910.227859-1-coiby.xu@gmail.com> References: <20201029074910.227859-1-coiby.xu@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org SET_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- drivers/iio/light/pa12203001.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iio/light/pa12203001.c b/drivers/iio/light/pa12203001.c index bfade6577a38..7737d2c8f0d5 100644 --- a/drivers/iio/light/pa12203001.c +++ b/drivers/iio/light/pa12203001.c @@ -417,14 +417,12 @@ static int pa12203001_suspend(struct device *dev) } #endif -#ifdef CONFIG_PM_SLEEP static int pa12203001_resume(struct device *dev) { struct iio_dev *indio_dev = i2c_get_clientdata(to_i2c_client(dev)); return pa12203001_power_chip(indio_dev, PA12203001_CHIP_ENABLE); } -#endif #ifdef CONFIG_PM static int pa12203001_runtime_resume(struct device *dev) From patchwork Thu Oct 29 07:49:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Coiby Xu X-Patchwork-Id: 11865481 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1CC8514B4 for ; Thu, 29 Oct 2020 07:55:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E8B9920EDD for ; Thu, 29 Oct 2020 07:55:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="oPao4NYf" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731078AbgJ2HzE (ORCPT ); Thu, 29 Oct 2020 03:55:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731175AbgJ2Hwj (ORCPT ); Thu, 29 Oct 2020 03:52:39 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22724C0613DD; Thu, 29 Oct 2020 00:52:09 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id b3so1678747pfo.2; Thu, 29 Oct 2020 00:52:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=h5HNd+1MHPcATDzA0dNegCzozzrt6LOIaewSq+EiFJA=; b=oPao4NYfZ2uyj3EZCi6YN6EbSge3yEQZJJhHJch2QclcaJMZkYujDNbjFVJWkPbFdQ om5o7K7w/mqoZaX9L4sGJLkTSHcltW2oaJbc/LxLC4yjTec6ZI8FjtK4y1wGHQZQWqW3 4u+t92cdTxo8oy+j3R/kNl6Rk5ZLuN61G1U7ygsrX7sgdaNg95BdczMdI4aySwQI+AzH zdncXDeBBG2wJBMq4sfscw+CUFEfIlrWSK7iXCfAy3robW814nJpwe6qgKdM9Mwjb7gG TeRKbj/e1Yrud8qV3PFD4w9J/4t8t8EkgFa5opnnWFagTQ8T6qj66WAqIBSBUScZ6A56 PlhQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=h5HNd+1MHPcATDzA0dNegCzozzrt6LOIaewSq+EiFJA=; b=dTYW85dRAaolZfHUtT4QvJ1mGFFXTC3Ch2ASh9mt9QhgE5vdCcpsqRcqUJXWeU7TxT vyr9LeF2Nn5iYQiOuqViFnKApWYuHLQ5F7xWq8UUNq1ztH+K5QkXu4NsFf1PzsOsOjJd 5YBYmBSvXaNgMZcQxUlSMAI/7W/THT5XgC4KEIrBw6jSN0EiJR3owyac7hxqcNrxQUCQ VH1vnRj8BZUWCF2smSf+HSEvm4b0V1iTIKkc2WobndAcOOl/0GSDhfADlBLf4FkNK4UF xc02RzJZVFtfTsJU0QP2enx8tf7lk+EEBhuPO2mhOqbpxKxr7x9VSh0XvcRKLFTZqJkO 1xTg== X-Gm-Message-State: AOAM533rPgl0OOtHFTryJOdkheS4r8U57h09kSc88BKHwNsgIAp9hcJv PLuD2PslpishwErW39TWLgI= X-Google-Smtp-Source: ABdhPJxhAkI44YDXehLLqYzEAveQzMKPLcNf3ICSCQS0rNCgXYn2TXij02zGpcQbodvx2fzi+3QxVA== X-Received: by 2002:a17:90a:6b08:: with SMTP id v8mr3052424pjj.126.1603957928772; Thu, 29 Oct 2020 00:52:08 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id f4sm1789665pjs.8.2020.10.29.00.52.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:52:08 -0700 (PDT) From: Coiby Xu To: Lars-Peter Clausen Cc: Jonathan Cameron , Peter Meerwald-Stadler , linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 15/15] iio: proximity: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:49:10 +0800 Message-Id: <20201029074910.227859-15-coiby.xu@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201029074910.227859-1-coiby.xu@gmail.com> References: <20201029074910.227859-1-coiby.xu@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org SET_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- drivers/iio/proximity/sx9500.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iio/proximity/sx9500.c b/drivers/iio/proximity/sx9500.c index acb821cbad46..f4d55d217582 100644 --- a/drivers/iio/proximity/sx9500.c +++ b/drivers/iio/proximity/sx9500.c @@ -994,7 +994,6 @@ static int sx9500_remove(struct i2c_client *client) return 0; } -#ifdef CONFIG_PM_SLEEP static int sx9500_suspend(struct device *dev) { struct iio_dev *indio_dev = i2c_get_clientdata(to_i2c_client(dev)); @@ -1031,7 +1030,6 @@ static int sx9500_resume(struct device *dev) return ret; } -#endif /* CONFIG_PM_SLEEP */ static const struct dev_pm_ops sx9500_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(sx9500_suspend, sx9500_resume)