Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1300543 > unrolled thread
| Started by | Vinod Koul <vinod.koul@intel.com> |
|---|---|
| First post | 2016-01-04 09:30 +0100 |
| Last post | 2016-01-04 16:00 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH 2/4] ALSA: hdac: drop unused dev_to_hdac macro Vinod Koul <vinod.koul@intel.com> - 2016-01-04 09:30 +0100
Re: [PATCH 2/4] ALSA: hdac: drop unused dev_to_hdac macro Geliang Tang <geliangtang@163.com> - 2016-01-04 16:00 +0100
| From | Vinod Koul <vinod.koul@intel.com> |
|---|---|
| Date | 2016-01-04 09:30 +0100 |
| Subject | Re: [PATCH 2/4] ALSA: hdac: drop unused dev_to_hdac macro |
| Message-ID | <qN8GB-YX-1@gated-at.bofh.it> |
On Mon, Dec 28, 2015 at 10:47:11PM +0800, Geliang Tang wrote:
> dev_to_hdac is not used anymore so drop it.
No harm in keeping this for now as the systems using these will be coming
up and more users will be upstreamed...
>
> Signed-off-by: Geliang Tang <geliangtang@163.com>
> ---
> sound/hda/ext/hdac_ext_bus.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/sound/hda/ext/hdac_ext_bus.c b/sound/hda/ext/hdac_ext_bus.c
> index 2433f7c..58f6b98 100644
> --- a/sound/hda/ext/hdac_ext_bus.c
> +++ b/sound/hda/ext/hdac_ext_bus.c
> @@ -197,8 +197,6 @@ void snd_hdac_ext_bus_device_remove(struct hdac_ext_bus *ebus)
> }
> }
> EXPORT_SYMBOL_GPL(snd_hdac_ext_bus_device_remove);
> -#define dev_to_hdac(dev) (container_of((dev), \
> - struct hdac_device, dev))
>
> static inline struct hdac_ext_driver *get_edrv(struct device *dev)
> {
> --
> 2.5.0
>
>
--
~Vinod
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Geliang Tang <geliangtang@163.com> |
|---|---|
| Date | 2016-01-04 16:00 +0100 |
| Message-ID | <qNeM2-4LW-1@gated-at.bofh.it> |
| In reply to | #1300543 |
On Mon, Jan 04, 2016 at 01:53:47PM +0530, Vinod Koul wrote:
> On Mon, Dec 28, 2015 at 10:47:11PM +0800, Geliang Tang wrote:
> > dev_to_hdac is not used anymore so drop it.
>
> No harm in keeping this for now as the systems using these will be coming
> up and more users will be upstreamed...
>
Thanks for your review. Sorry that I didn't make myself clear in the commit
log. What I droped is a repetitive macro. dev_to_hdac() in hdac_ext_bus.c
and dev_to_hdac_dev() in hdaudio.h are the same:
include/sound/hdaudio.h:
#define dev_to_hdac_dev(_dev) container_of(_dev, struct hdac_device, dev)
sound/hda/ext/hdac_ext_bus.c:
#define dev_to_hdac(dev) (container_of((dev), \
struct hdac_device, dev))
Users should use dev_to_hdac_dev() in hdaudio.h, not dev_to_hdac().
-Geliang
> >
> > Signed-off-by: Geliang Tang <geliangtang@163.com>
> > ---
> > sound/hda/ext/hdac_ext_bus.c | 2 --
> > 1 file changed, 2 deletions(-)
> >
> > diff --git a/sound/hda/ext/hdac_ext_bus.c b/sound/hda/ext/hdac_ext_bus.c
> > index 2433f7c..58f6b98 100644
> > --- a/sound/hda/ext/hdac_ext_bus.c
> > +++ b/sound/hda/ext/hdac_ext_bus.c
> > @@ -197,8 +197,6 @@ void snd_hdac_ext_bus_device_remove(struct hdac_ext_bus *ebus)
> > }
> > }
> > EXPORT_SYMBOL_GPL(snd_hdac_ext_bus_device_remove);
> > -#define dev_to_hdac(dev) (container_of((dev), \
> > - struct hdac_device, dev))
> >
> > static inline struct hdac_ext_driver *get_edrv(struct device *dev)
> > {
> > --
> > 2.5.0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web