|
Hi ,
In this following code used for struct function also passed one parameter and one structure.why used this type of struct function and advantages.
struct clk *clk_get(struct device *dev, const char *id)
{
struct clk *clk;
list_for_each_entry(clk, &clocks, node) {
if (strcmp(id, clk->name) == 0)
return clk;
if (clk->function && (dev == clk->dev) && strcmp(id, clk->function) == 0)
return clk;
}
return ERR_PTR(-ENOENT);
}
EXPORT_SYMBOL(clk_get);
thanks by,
venkat.
|
|
|
|
|
I think the answer is obvious, and could you see the bleeding obvious you would know what to do!
---------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
|
|
|
|
|
I would ask that question here
C-C++-MFC[^]
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
Because it needs the Liquid Nitrogen interface enabled or the baconator goes out of calibration and then you would have to add CListCtrl to all modalities.
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.
|
|
|
|
|
OriginalGriff wrote: baconator goes out of calibration
Surely one of the cross beams will go out of skew on the treadle!
|
|
|
|
|
Ever since we re-imagined our paradigm to emphasize our core competencies the treadle didn't matter - so we downsized it.
Government is not reason; it is not eloquent; it is force. Like fire, it is a dangerous servant and a fearful master. ~ George Washington
|
|
|
|
|
Is that treadle or treacle?
Software Zen: delete this;
|
|
|
|
|
Only if you forget the three-eighths Gripley. It stops the elliptical cam gradually sliding up the beam shaft and catching on the flange rebate, with disastrous results as you can no doubt imagine.
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.
|
|
|
|
|
Venkat, as you are new to the site, please let me guide you in a couple of things.
First of all, when you post a message, it's absolutely vital that you pick the right forum to ask your question in. This increases the chance that someone with the skills to solve your problem will see it and be willing to respond. If you are in doubt as to which forum, take a look at the descriptions at the top of the forums - you posted in the lounge, which is clearly marked as not allowing programming questions.
Next, when you post a code snippet, use the pre HTML tags to wrap your code. An easy way to do this is to highlight your code snippet and click the code option just above the Message textbox. This shows a popup which you can use to select the appropriate language for your post.
Please don't let the negative comments you've seen ruin your experience with the site. Once you've learned the "rules" of the site, it should become a friendlier place for you and I look forward to seeing your contributions in the future.
|
|
|
|
|
|
Nicely done, you make us proud!
|
|
|
|
|
Thank you.
BDF
I often make very large prints from unexposed film, and every one of them turns out to be a picture of myself as I once dreamed I would be.
-- BillWoodruff
|
|
|
|
|
|
Thanks Pete.
Software Zen: delete this;
|
|
|
|
|
This remains in the Lounge, yet my post from yesterday gets removed.
|
|
|
|
|
|
You don't know Venkateshkishore? We all know Venkateshkishore!
|
|
|
|
|
This is the long sought-after method that Al Gore uses to calculate the current rate of increase of global warming.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|