staging: axis-fifo: convert to use miscdevice
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 7 Sep 2021 11:40:44 +0000 (13:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Sep 2021 06:49:53 +0000 (08:49 +0200)
commitd2d7aa53891ea11c8ba9357c75bf1d784e57e0ba
treebade065a72ce08fd93341a56d67559fa690cc6cc
parentdfd1a05a38763683fe121169e0998638913188c2
staging: axis-fifo: convert to use miscdevice

Using a struct class, a cdev, and another device just for a single minor
device is total overkill.  Just use a dynamic misc device instead,
saving lots of logic and memory.

Cc: Jacob Feder <jacobsfeder@gmail.com>
Cc: Lee Jones <lee.jones@linaro.org>
Cc: Muhammad Usama Anjum <musamaanjum@gmail.com>
Link: https://lore.kernel.org/r/YTdPvBgKW6cKYrvb@kroah.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/axis-fifo/axis-fifo.c