/********************************************************************* * * Filename: crc.h * Version: * Description: CRC routines * Status: Experimental. * Author: Dag Brattli * Created at: Mon Aug 4 20:40:53 1997 * Modified at: Sun May 2 20:25:23 1999 * Modified by: Dag Brattli * ********************************************************************/ #ifndef IRDA_CRC_H #define IRDA_CRC_H #include #include #define INIT_FCS 0xffff /* Initial FCS value */ #define GOOD_FCS 0xf0b8 /* Good final FCS value */ /* Recompute the FCS with one more character appended. */ #define irda_fcs(fcs, c) crc_ccitt_byte(fcs, c) /* Recompute the FCS with len bytes appended. */ #define irda_calc_crc16(fcs, buf, len) crc_ccitt(fcs, buf, len) #endif 'get'> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/oxygen/wm8776.h')
href='/cgit.cgi/linux/net-next.git/commit/sound/oss/sound_config.h?h=nds-private-remove&id=33e962c8871f015f5c8978384553dddcf5b81b22'>33e962c8871f015f5c8978384553dddcf5b81b22 (patch)
tree43aff96c2ee21d9e0fa2018457778a4de52053cd /sound/oss/sound_config.h
parent575ddce0507789bf9830d089557d2199d2f91865 (diff)
rt2x00: fix clk_get call
clk_get() takes two arguments and might return ERR_PTR(), so we have to nullify pointer on that case, to do not break further call to clk_get_rate(). Reported-by: Felix Fietkau <nbd@nbd.name> Fixes: 34db70b92fae ("rt2x00: add copy of clk for soc devices") Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'sound/oss/sound_config.h')