Re: mmc: struct device - replace bus_id with dev_name(),dev_set_name()

From: Harvey Harrison
Date: Thu Oct 30 2008 - 01:16:18 EST


On Thu, 2008-10-30 at 05:37 +0100, Marcel Holtmann wrote:
> Hi Harvey,
> >
> > A lot of these helpers don't seem to add that much, would you care for
> > a patch removing them Pierre?
> >
> > Specifically sdio_func_id, sdio_get/set_drvdata don't have that many
> > users.
>
> I prefer if we keep them. Since they take the proper parameter.
> Otherwise the driver has to always got func->dev for everything. Most
> SDIO drivers care of the function and not about the struct device
> underneath it.
>

Sure, it just seemed odd to have a wrapper around a wrapper.

Cheers,

Harvey

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/