define TOOL_templ include $(1)/Makefile $(1) $(1)%: BUILD_DIR := $(1) $(1) $(1)%: CFLAGS += $$($(1)-eflags) $(1)_prehook: $(Q)echo "$(bold)$(WHAT) $(1):$(normal)" $(1): $(1)_prehook $$($(1)-lex) $$($(1)-yaac) $$(patsubst %.o,$(1)/%.o,$$($(1)-objs)) $(1)_clean: $(1)_clean_custom $(Q)$$(call RM,$(1)/*.o $(1)/$(1) $(1)/*.gz) $(1)_do_install: $(Q)$$(call INSTX,$(1)/$(1),$$(SBINDIR)) $(Q)$(GZIP) $(1).8 > $(1)/$(1).8.gz $(Q)$$(call INSTX,$(1)/$(1).8.gz,$$(MAN8DIR)) $(Q)$$(foreach file,$$($(1)-confs),$$(call INST,$$(file),$$(ETCDIRE));) $(1)_install: $(1)_do_install $(1)_post_install $(1)_uninstall: $(1)_uninstall_custom $(Q)$$(call RM,$$(SBINDIR)/$(1)) $(Q)$$(call RM,$$(MAN8DIR)/$(1).8.gz) $(1)/%.yy.o: $(1)/%.yy.c $$(CC) $$(CFLAGS) -o $$@ -c $$< $(1)/%.tab.o: $(1)/%.tab.c $$(CC) $$(CFLAGS) -o $$@ -c $$< $(1)/%.o: %.c $$(CC) $$(CFLAGS) -o $(1)/$$(shell basename $$@) -c $$< endef hidden' name='id' value='9141ad8773f4f6ebb8cd9fa376d9497fa7e73374'/> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKris Huang <huang_kris@projectara.com>2016-08-05 12:59:08 +0800
committerGreg Kroah-Hartman <gregkh@google.com>2016-08-05 20:14:48 +0200
commit9141ad8773f4f6ebb8cd9fa376d9497fa7e73374 (patch)
tree15fa558bdc02b4be42e1bbb4d99f5a52a7e9915f
parent8f3972f78f3ac52833fb781cbb689af39fc8b0f1 (diff)
greybus: lights: Add runtime pm support
Modify Lights greybus driver to support runtime PM framework. The suspend and resume function have been tested with gpbridge-test image by sysfs. Lights functions work well on suspend/resume. Testing Done: Compiled and verified on EVT2 and gpbridge-test module with device class daughter board. Signed-off-by: Kris Huang <huang_kris@projectara.com> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat
-rw-r--r--drivers/staging/greybus/light.c116
1 files changed, 94 insertions, 22 deletions
diff --git a/drivers/staging/greybus/light.c b/drivers/staging/greybus/light.c