The Lounge is rated PG. If you're about to post something you wouldn't want your
kid sister to read then don't post it. No flame wars, no abusive conduct, no programming
questions and please don't post ads.
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;
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
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.
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
"So long as … social condemnation, which, in the face of civilization, artificially creates hells on earth, and complicates divine destiny, with human fatality … so long as three problems of the age: degradation of man by poverty; ruin of women by starvation; dwarfing of childhood by physical and spiritual night: are not solved: so long as social asphyxia shall be possible … so long as ignorance and misery remain on earth, books like this cannot be useless." Victor Hugo, "Les Misérables," 1862
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
The proper way to make bacon, is to fry it in a pan to the point just before burning (no carbon) remove from pan without drying off the grease and letting the bacon sit in its flavors over night. Enjoy in the morning with eggs fried in the remaining grease.