aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard_base.cpp
diff options
context:
space:
mode:
authorAshish Chaudhari <ashish@ettus.com>2016-02-19 17:42:44 -0800
committerAshish Chaudhari <ashish@ettus.com>2016-02-26 14:23:40 -0800
commit6db9ac785ca5f62e58cf792f0525b37b16a87bdf (patch)
treeb64f0fb76253531b3dc88c22a795e0f79b556df0 /host/lib/usrp/dboard_base.cpp
parentc03506fedd75a7fbad242d2be06123a187e66277 (diff)
downloaduhd-6db9ac785ca5f62e58cf792f0525b37b16a87bdf.tar.gz
uhd-6db9ac785ca5f62e58cf792f0525b37b16a87bdf.tar.bz2
uhd-6db9ac785ca5f62e58cf792f0525b37b16a87bdf.zip
dboards: Added ability to register a per-dboard container class
- The typical dboard classes are actually "subdev" classes i.e. there is one instance per dboard subdev (front-end). This makes it hard to implement shared functionality between multiple front-ends. - This changes adds the ability to create a container class which is created per group of subdevs and each subdev gets a pointer to the container class for cross linkage.
Diffstat (limited to 'host/lib/usrp/dboard_base.cpp')
-rw-r--r--host/lib/usrp/dboard_base.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/dboard_base.cpp b/host/lib/usrp/dboard_base.cpp
index fe14c02b9..465b9e489 100644
--- a/host/lib/usrp/dboard_base.cpp
+++ b/host/lib/usrp/dboard_base.cpp
@@ -32,7 +32,7 @@ struct dboard_base::impl{
dboard_base::dboard_base(ctor_args_t args){
_impl = UHD_PIMPL_MAKE(impl, ());
- _impl->args = *static_cast<dboard_ctor_args_t *>(args);
+ _impl->args = dboard_ctor_args_t::cast(args);
}
std::string dboard_base::get_subdev_name(void){