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)-yacc) $$(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),$$(DESTDIR)$$(SBINDIR)) $(Q)eval GZIP= gzip $(GZIP_ENV) $(1).8 > $(1)/$(1).8.gz $(Q)$$(call INST,$(1)/$(1).8.gz,$$(DESTDIR)$$(MAN8DIR)) $(Q)$$(foreach file,$$($(1)-confs),$$(call INST,$$(file),$$(DESTDIR)$$(ETCDIRE));) $(1)_install: $(1)_do_install $(1)_post_install $(1)_uninstall: $(1)_uninstall_custom $(Q)$$(call RM,$$(DESTDIR)$$(SBINDIR)/$(1)) $(Q)$$(call RM,$$(DESTDIR)$$(MAN8DIR)/$(1).8.gz) $(1)/%.yy.o: $(1)/%.yy.c $$(CCQ) $$(CFLAGS) -o $$@ -c $$< $(1)/%.tab.o: $(1)/%.tab.c $$(CCQ) $$(CFLAGS) -o $$@ -c $$< $(1)/%.o: %.c %.h $$(CHECK) $$(CFLAGS) $$(CHECKFLAGS) $$< $$(CCQ) $$(CFLAGS) -o $(1)/$$(shell basename $$@) -c $$< $(1)/%.o: %.c $$(CHECK) $$(CFLAGS) $$(CHECKFLAGS) $$< $$(CCQ) $$(CFLAGS) -o $(1)/$$(shell basename $$@) -c $$< endef on value='nds-private-remove' selected='selected'>nds-private-remove net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Nikula <jarkko.nikula@linux.intel.com>2016-10-07 10:59:51 +0300
committerMark Brown <broonie@kernel.org>2016-10-21 12:03:13 +0100
commitad466a4633766fe147d7d996daa5511b7b874c7a (patch)
treed2d11859c3a1656f9686b06087334b6f74e7a789
parent1001354ca34179f3db924eb66672442a173147dc (diff)
ASoC: rl6347a: Use dev_err for I2C communication error prints
It's difficult to guess from bunch of "ret=-121" errors what driver and device actually caused them. Since struct i2c_client has the dev pointer use that for dev_err() with meaningful error message. Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat