All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Assmann <sassmann@kpanic.de>
To: Hauke Mehrtens <hauke@hauke-m.de>, backports@vger.kernel.org
Cc: mcgrof@do-not-panic.com
Subject: Re: [PATCH 09/10] backports: remove devm_hwmon_device_register_with_groups references with smpl patch
Date: Wed, 22 Apr 2015 16:58:00 +0200	[thread overview]
Message-ID: <5537B6F8.2010900@kpanic.de> (raw)
In-Reply-To: <5536B6C2.90105@hauke-m.de>

On 21.04.2015 22:44, Hauke Mehrtens wrote:
> On 02/25/2015 03:20 PM, Stefan Assmann wrote:
>> Signed-off-by: Stefan Assmann <sassmann@kpanic.de>
>> ---
>>  ...m_hwmon_device_register_with_groups.patch.cocci | 40 ++++++++++++++++++++++
>>  ...gb-devm_hwmon_device_register_with_groups.patch | 28 ---------------
>>  2 files changed, 40 insertions(+), 28 deletions(-)
>>  create mode 100644 patches/collateral-evolutions/network/0041-devm_hwmon_device_register_with_groups/devm_hwmon_device_register_with_groups.patch.cocci
>>  delete mode 100644 patches/collateral-evolutions/network/0041-devm_hwmon_device_register_with_groups/igb-devm_hwmon_device_register_with_groups.patch
>>
> 
> I think this patch and this spatch is not needed.
> 
> devm_hwmon_device_register_with_groups() gets backported in
> https://git.kernel.org/cgit/linux/kernel/git/backports/backports.git/commit/?id=69dbc7cf6d34b903c1dc80f1d4f880fc9acfe6fb
> 
> I haven't tested igb without this patch.

You're right, I didn't notice this being backported. Please drop this
patch and let's remove the old patch as well.

  Stefan

>From fba5eaf9c6bf19d3c4ee98a217efc21e6cddbe91 Mon Sep 17 00:00:00 2001
From: Stefan Assmann <sassmann@kpanic.de>
Date: Wed, 22 Apr 2015 16:50:50 +0200
Subject: [PATCH] backports: remove
 igb-devm_hwmon_device_register_with_groups.patch

This patch is no longer needed due to commit

commit 69dbc7cf6d34b903c1dc80f1d4f880fc9acfe6fb
Author: Mathieu Olivari <mathieu@qca.qualcomm.com>
Date:   Sun Jan 25 09:46:02 2015 -0800

    backport: add hwmon group registration functions

which provides the missing functionality now

Signed-off-by: Stefan Assmann <sassmann@kpanic.de>
---
 .../INFO                                           | 13 ----------
 ...gb-devm_hwmon_device_register_with_groups.patch | 28 ----------------------
 2 files changed, 41 deletions(-)
 delete mode 100644 patches/collateral-evolutions/network/0041-devm_hwmon_device_register_with_groups/INFO
 delete mode 100644 patches/collateral-evolutions/network/0041-devm_hwmon_device_register_with_groups/igb-devm_hwmon_device_register_with_groups.patch

diff --git a/patches/collateral-evolutions/network/0041-devm_hwmon_device_register_with_groups/INFO b/patches/collateral-evolutions/network/0041-devm_hwmon_device_register_with_groups/INFO
deleted file mode 100644
index 9169f68..0000000
--- a/patches/collateral-evolutions/network/0041-devm_hwmon_device_register_with_groups/INFO
+++ /dev/null
@@ -1,13 +0,0 @@
-The new hwmon_device_register_with_groups API has not been backported yet.
-Address this by putting ifdef around the code using the API.
-
-
-commit 74188cba088192e14cd7fd5433876e8c947bcdd8
-Author: Guenter Roeck <linux@roeck-us.net>
-Date:   Thu Jul 11 20:00:12 2013 -0700
-
-    hwmon: Provide managed hwmon registration
-
-git describe --contains 74188cba088192e14cd7fd5433876e8c947bcdd8
-v3.13-rc1~126^2~30
-
diff --git a/patches/collateral-evolutions/network/0041-devm_hwmon_device_register_with_groups/igb-devm_hwmon_device_register_with_groups.patch
b/patches/collateral-evolutions/network/0041-devm_hwmon_device_register_with_groups/igb-devm_hwmon_device_register_with_groups.patch
deleted file mode 100644
index cd83953..0000000
--- a/patches/collateral-evolutions/network/0041-devm_hwmon_device_register_with_groups/igb-devm_hwmon_device_register_with_groups.patch
+++ /dev/null
@@ -1,28 +0,0 @@
---- a/drivers/net/ethernet/intel/igb/igb_hwmon.c
-+++ b/drivers/net/ethernet/intel/igb/igb_hwmon.c
-@@ -173,7 +173,9 @@ int igb_sysfs_init(struct igb_adapter *a
- {
- 	struct hwmon_buff *igb_hwmon;
- 	struct i2c_client *client;
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0)
- 	struct device *hwmon_dev;
-+#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0) */
- 	unsigned int i;
- 	int rc = 0;
-
-@@ -230,6 +232,7 @@ int igb_sysfs_init(struct igb_adapter *a
- 	igb_hwmon->groups[0] = &igb_hwmon->group;
- 	igb_hwmon->group.attrs = igb_hwmon->attrs;
-
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0)
- 	hwmon_dev = devm_hwmon_device_register_with_groups(&adapter->pdev->dev,
- 							   client->name,
- 							   igb_hwmon,
-@@ -242,6 +245,7 @@ int igb_sysfs_init(struct igb_adapter *a
- 	goto exit;
-
- err:
-+#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0) */
- 	igb_sysfs_del_adapter(adapter);
- exit:
- 	return rc;
-- 
2.1.0


  reply	other threads:[~2015-04-22 14:58 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-25 14:20 [PATCH 00/10] backports: replace igb patches with generic cocci patches Stefan Assmann
2015-02-25 14:20 ` [PATCH 01/10] backports: replace struct ethtool_ops get_ts_info changes with smpl patch Stefan Assmann
2015-02-25 14:20 ` [PATCH 02/10] backports: replace struct ethtool_ops get/set_eee " Stefan Assmann
2015-02-25 14:20 ` [PATCH 03/10] backports: replace struct ethtool_ops get_module " Stefan Assmann
2015-02-25 14:20 ` [PATCH 04/10] backports: replace struct pci_driver sriov_configure " Stefan Assmann
2015-02-25 14:20 ` [PATCH 05/10] backports: replace struct pci_error_handlers " Stefan Assmann
2015-02-25 14:20 ` [PATCH 06/10] backports: replace struct ethtool_ops get_rxnfc " Stefan Assmann
2015-02-25 14:20 ` [PATCH 07/10] backports: replace struct net_device_ops set_vf_spoofchk " Stefan Assmann
2015-02-25 14:20 ` [PATCH 08/10] backports: replace struct net_device_ops set_vf_rate " Stefan Assmann
2015-02-25 14:20 ` [PATCH 09/10] backports: remove devm_hwmon_device_register_with_groups references " Stefan Assmann
2015-04-21 20:44   ` Hauke Mehrtens
2015-04-22 14:58     ` Stefan Assmann [this message]
2015-02-25 14:20 ` [PATCH 10/10] backports: require coccinelle version 1.0.0-rc24 Stefan Assmann
2015-04-20 21:27   ` Hauke Mehrtens
2015-04-21  6:16     ` Johannes Berg
2015-04-21  6:30       ` Stefan Assmann
2015-04-25 14:00 ` [PATCH 00/10] backports: replace igb patches with generic cocci patches Hauke Mehrtens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5537B6F8.2010900@kpanic.de \
    --to=sassmann@kpanic.de \
    --cc=backports@vger.kernel.org \
    --cc=hauke@hauke-m.de \
    --cc=mcgrof@do-not-panic.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.