All of lore.kernel.org
 help / color / mirror / Atom feed
* How to set fops in "struct platform_pwm_backlight_data"?
@ 2013-10-17  6:49 ` Mark Zhang
  0 siblings, 0 replies; 38+ messages in thread
From: Mark Zhang @ 2013-10-17  6:49 UTC (permalink / raw)
  To: thierry.reding, rpurdie, jg1.han,
	Jean-Christophe PLAGNIOL-VILLARD, tomi.valkeinen
  Cc: linux-pwm, linux-fbdev@vger.kernel.org,
	linux-kernel@vger.kernel.org

Hi,

This is the first time I send mail to linux-pwm, I didn't read through
the mails in this list, so if somebody already asked this question, I'm
sorry about that.

I wanna set some fops in "struct platform_pwm_backlight_data". But the
currrent probe function in pwm_bl.c says:

-------
if (!data) {
	ret = pwm_backlight_parse_dt(&pdev->dev, &defdata);
	if (ret < 0) {
		dev_err(&pdev->dev, "failed to find platform data\n");
		return ret;
	}

	data = &defdata;
}
-------

This looks like if we set the platform data for pwm backlight device,
"pwm_backlight_parse_dt" will never have a chance to be called, which
means the stuffs I defined in backlight DT node will be ignored.

If I don't set the platform data for pwm backlight device, according to
the pwm_backlight_probe, I will never have a chance to set some fops
which I need(like "notify", "check_fb"...).

So, what I suppose to do now? Maybe there is a way to set function
pointers in DT?

Mark

^ permalink raw reply	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2013-10-23 11:34 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-17  6:49 How to set fops in "struct platform_pwm_backlight_data"? Mark Zhang
2013-10-17  6:49 ` Mark Zhang
2013-10-17  7:14 ` Thierry Reding
2013-10-17  7:14   ` Thierry Reding
2013-10-18  4:48   ` Mark Zhang
2013-10-18  4:48     ` Mark Zhang
2013-10-22  2:41     ` Mark Zhang
2013-10-22  2:41       ` Mark Zhang
2013-10-22  7:24     ` Thierry Reding
2013-10-22  7:24       ` Thierry Reding
2013-10-22  8:55       ` Mark Zhang
2013-10-22  8:55         ` Mark Zhang
2013-10-22 12:49         ` Thierry Reding
2013-10-22 12:49           ` Thierry Reding
2013-10-23  2:16           ` Mark Zhang
2013-10-23  2:16             ` Mark Zhang
2013-10-23  8:00             ` Thierry Reding
2013-10-23  8:00               ` Thierry Reding
2013-10-23  8:49               ` Mark Zhang
2013-10-23  8:49                 ` Mark Zhang
2013-10-23  9:09                 ` Thierry Reding
2013-10-23  9:09                   ` Thierry Reding
2013-10-23 10:31                   ` Mark Zhang
2013-10-23 10:31                     ` Mark Zhang
2013-10-23 10:54                     ` Thierry Reding
2013-10-23 10:54                       ` Thierry Reding
2013-10-23 11:33                       ` Mark Zhang
2013-10-23 11:33                         ` Mark Zhang
2013-10-23 10:36                   ` Mark Zhang
2013-10-23 10:36                     ` Mark Zhang
2013-10-23 10:46                     ` Mark Zhang
2013-10-23 10:46                       ` Mark Zhang
2013-10-23 10:58                       ` Thierry Reding
2013-10-23 10:58                         ` Thierry Reding
2013-10-23 11:34                         ` Mark Zhang
2013-10-23 11:34                           ` Mark Zhang
2013-10-23 10:51                     ` Thierry Reding
2013-10-23 10:51                       ` Thierry Reding

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.