diff mbox

[RFC,wpan-next,2/2] ieee802154: fakelb: add deprecated msg while probe

Message ID 20180427212154.29582-3-aring@mojatatu.com (mailing list archive)
State RFC
Headers show

Commit Message

Alexander Aring April 27, 2018, 9:21 p.m. UTC
Since mac802154_hwsim the fakelb driver will get deprecated. This patch will
notifier all users of fakelb to switch to the new mac802154_hwsim driver.

Signed-off-by: Alexander Aring <aring@mojatatu.com>
---
 drivers/net/ieee802154/fakelb.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Stefan Schmidt May 7, 2018, 2:01 p.m. UTC | #1
Hello.


On 04/27/2018 11:21 PM, Alexander Aring wrote:
> Since mac802154_hwsim the fakelb driver will get deprecated. This patch will
> notifier all users of fakelb to switch to the new mac802154_hwsim driver.
>
> Signed-off-by: Alexander Aring <aring@mojatatu.com>
> ---
>  drivers/net/ieee802154/fakelb.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/drivers/net/ieee802154/fakelb.c b/drivers/net/ieee802154/fakelb.c
> index 0d673f7682ee..d44cc27a13c7 100644
> --- a/drivers/net/ieee802154/fakelb.c
> +++ b/drivers/net/ieee802154/fakelb.c
> @@ -254,6 +254,9 @@ static __init int fakelb_init_module(void)
>  {
>  	ieee802154fake_dev = platform_device_register_simple(
>  			     "ieee802154fakelb", -1, NULL, 0);
> +
> +	pr_warn("fakelb driver is marked as deprecated, please use mac802154_hwsim!");
> +
>  	return platform_driver_register(&ieee802154fake_driver);
>  }
>  

I am fine with this patch once the hwsim driver is merged.

regards
Stefan Schmidt
--
To unsubscribe from this list: send the line "unsubscribe linux-wpan" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Alexander Aring May 17, 2018, 8:40 p.m. UTC | #2
Hi,

On Fri, Apr 27, 2018 at 05:21:54PM -0400, Alexander Aring wrote:
> Since mac802154_hwsim the fakelb driver will get deprecated. This patch will
> notifier all users of fakelb to switch to the new mac802154_hwsim driver.
> 
> Signed-off-by: Alexander Aring <aring@mojatatu.com>
> ---
>  drivers/net/ieee802154/fakelb.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/net/ieee802154/fakelb.c b/drivers/net/ieee802154/fakelb.c
> index 0d673f7682ee..d44cc27a13c7 100644
> --- a/drivers/net/ieee802154/fakelb.c
> +++ b/drivers/net/ieee802154/fakelb.c
> @@ -254,6 +254,9 @@ static __init int fakelb_init_module(void)
>  {
>  	ieee802154fake_dev = platform_device_register_simple(
>  			     "ieee802154fakelb", -1, NULL, 0);
> +
> +	pr_warn("fakelb driver is marked as deprecated, please use mac802154_hwsim!");
> +

I can mess up the smallest patches, there is a missing newline. :-)

- Alex
--
To unsubscribe from this list: send the line "unsubscribe linux-wpan" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/net/ieee802154/fakelb.c b/drivers/net/ieee802154/fakelb.c
index 0d673f7682ee..d44cc27a13c7 100644
--- a/drivers/net/ieee802154/fakelb.c
+++ b/drivers/net/ieee802154/fakelb.c
@@ -254,6 +254,9 @@  static __init int fakelb_init_module(void)
 {
 	ieee802154fake_dev = platform_device_register_simple(
 			     "ieee802154fakelb", -1, NULL, 0);
+
+	pr_warn("fakelb driver is marked as deprecated, please use mac802154_hwsim!");
+
 	return platform_driver_register(&ieee802154fake_driver);
 }