* [linux-dvb] [OT] request_firmware()
@ 2008-02-14 20:37 Thomas Kaiser
2008-02-14 20:54 ` Michael Krufky
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Kaiser @ 2008-02-14 20:37 UTC (permalink / raw)
To: _LinuxTV-DVB - Mailinglist
Hello
I know this is the wrong list to ask, but you use this function (see subject)
and I think somebody can answer my question.
Why does request_firmware need a device as parameter?
int request_firmware(const struct firmware **fw, const char *name,
struct device *device);
I thought request_firmware just loads the firmware in the struct firmware?
Thanks,
Thomas
--
http://www.kaiser-linux.li
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-dvb] [OT] request_firmware()
2008-02-14 20:37 [linux-dvb] [OT] request_firmware() Thomas Kaiser
@ 2008-02-14 20:54 ` Michael Krufky
2008-02-14 21:08 ` Thomas Kaiser
0 siblings, 1 reply; 3+ messages in thread
From: Michael Krufky @ 2008-02-14 20:54 UTC (permalink / raw)
To: Thomas Kaiser; +Cc: _LinuxTV-DVB - Mailinglist
On Thu, Feb 14, 2008 at 3:37 PM, Thomas Kaiser
<linux-dvb@kaiser-linux.li> wrote:
> Hello
>
> I know this is the wrong list to ask, but you use this function (see subject)
> and I think somebody can answer my question.
>
> Why does request_firmware need a device as parameter?
> int request_firmware(const struct firmware **fw, const char *name,
> struct device *device);
>
> I thought request_firmware just loads the firmware in the struct firmware?
IIRC, when the device is destroyed, it is a signal for the memory used
to store the firmware to be freed if not done already.
-Mike
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-dvb] [OT] request_firmware()
2008-02-14 20:54 ` Michael Krufky
@ 2008-02-14 21:08 ` Thomas Kaiser
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Kaiser @ 2008-02-14 21:08 UTC (permalink / raw)
To: Michael Krufky; +Cc: _LinuxTV-DVB - Mailinglist
Michael Krufky wrote:
> On Thu, Feb 14, 2008 at 3:37 PM, Thomas Kaiser
> <linux-dvb@kaiser-linux.li> wrote:
>> Hello
>>
>> I know this is the wrong list to ask, but you use this function (see subject)
>> and I think somebody can answer my question.
>>
>> Why does request_firmware need a device as parameter?
>> int request_firmware(const struct firmware **fw, const char *name,
>> struct device *device);
>>
>> I thought request_firmware just loads the firmware in the struct firmware?
>
>
> IIRC, when the device is destroyed, it is a signal for the memory used
> to store the firmware to be freed if not done already.
>
> -Mike
So, that means when the pointer to device gets null the memory which holds the
firmware is freed?
Thanks,
Thomas
--
http://www.kaiser-linux.li
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-02-14 21:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-14 20:37 [linux-dvb] [OT] request_firmware() Thomas Kaiser
2008-02-14 20:54 ` Michael Krufky
2008-02-14 21:08 ` Thomas Kaiser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox